function RemoveWeapon()
{
DefaultInventory(0)=None;
}
How far off would I be if I said that? I've done some searching for the topic of the default inventory system, but I've not seen much info. I've also seen many guides on how to make my own inventory system, but I'm on a tight deadline and don't have the time to make a completely new inventory.
Any advice or suggested resources?
[UDK] Clarity on the default inventory system, and removing a weapon
The DefaultInventory's given to the player when they're spawned. After that, the weapon will be in the InventoryManager, and you'll have to use the DropFrom(vector StartLocation, vector StartVelocity) function from the inventory class to get the pawn to throw out its current weapon... Luckily, that's already done for you with the PlayerController's ThrowWeapon() function (which calls the Pawn's ThrowActiveWeapon() function), so you don't need to make the function at all.
Ahh, no, ThrowWeapon() would spawn a DroppedPickup in its place. You'll have to remove the weapon directly with the InventoryManager's RemoveFromInventory(Inventory ItemToRemove) function. I wrote out what to do, but then where's the fun in that? I'll let you have your fun figuring it out instead of just giving you the answers