This is an old revision of the document!
void SetInventory(str item, int amount)
Sets the amount of items of the given type in the activator's inventory to amount.
This function is optimized for networking and won't call TakeInventory or GiveInventory if the actor already has the exact amount of items.
SetInventory("Shells", 8); // The player will now have exactly 8 shells. SetInventory("IsReloading", 0); // Set the "IsReloading" flag to 0.