This is an old revision of the document!
Just like with SetInventory and SetActorInventory, functions with Actor
in them work on the actor with the specified TID, while the functions without work on the activator.
void SetInventory(str item, int amount) void SetActorInventory(int tid, str item, int amount)
Sets the amount of the specified inventory item
to amount
, by giving or taking items. Example: SetInventory(“SomeItem”, 8)
Optimized to minimize network traffic in Zandronum.
void ToggleInventory(str item) void ToggleActorInventory(int tid, str item)
Gives one unit of item
if it isn't present in inventory, or takes it away if it is.
void GiveMaxInventory(str item) void GiveMaxActorInventory(int tid, str item)
Gives the maxiumum amount of item
. Shorthand for GiveInventory(item, INT_MAX)
void TakeMaxInventory(str item) void TakeMaxActorInventory(int tid, str item)
Takes all items of types item
.