====== SetInventory ====== {{tag>zdoom}} ''void SetInventory(str item, int amount)'' ===== Description ===== 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 [[zdoom>TakeInventory]] or [[zdoom>GiveInventory]] if the actor already has the exact amount of items. For a version that works on other actors, see [[SetActorInventory]]. ===== Examples ===== SetInventory("Shells", 8); // The player will now have exactly 8 shells. SetInventory("IsReloading", 0); // Set the "IsReloading" flag to 0.