====== Inventory functions ====== ===== Introduction ===== ACSUtils provides extra functions to operate on inventory. Just like [[zdoom>GiveInventory]]/[[zdoom>GiveActorInventory]] and [[zdoom>TakeInventory]]/[[zdoom>TakeActorInventory]], every function is provided in two variants: one operating on the activator and the other operating on the actor with the specified tid. ===== SetInventory ===== * ''void SetInventory(str item, int count)'' * ''void SetActorInventory(int tid, str item, int count)'' ===== ToggleInventory ===== * ''void ToggleInventory(str item)'' * ''void ToggleActorInventory(int tid, str item, int count'') ===== GiveMaxInventory/TakeMaxInventory ===== * ''void GiveMaxInventory(str item)'' * ''void TakeMaxInventory(str item)'' * ''void GiveMaxActorInventory(int tid, str item)'' * ''void TakeMaxActorInventory(int tid, str item)''