This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| inventory_functions [2018/01/07 23:07] – korshun | inventory_functions [2019/08/25 23:39] (current) – created korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | + | ||
| - | Just like with [[zdoom> | + | |
| - | + | ||
| - | ===== SetInventory ===== | + | |
| - | + | ||
| - | void SetInventory(str item, int amount) | + | |
| - | void SetActorInventory(int tid, str item, int amount) | + | |
| - | + | ||
| - | Sets the amount of the specified inventory '' | + | |
| - | + | ||
| - | Optimized to minimize network traffic in Zandronum. | + | |
| - | + | ||
| - | -------- | + | |
| - | ===== ToggleInventory ===== | + | |
| - | + | ||
| - | + | ||
| - | void ToggleInventory(str item) | + | |
| - | void ToggleActorInventory(int tid, str item) | + | |
| - | + | ||
| - | Gives one unit of '' | + | |
| - | + | ||
| - | + | ||
| - | -------- | + | |
| - | ===== GiveMaxInventory ===== | + | |
| - | void GiveMaxInventory(str item) | + | |
| - | void GiveMaxActorInventory(int tid, str item) | + | |
| - | + | ||
| - | Gives the maxiumum amount of '' | + | |
| - | + | ||
| - | + | ||
| - | -------- | + | |
| - | ===== TakeMaxInventory ===== | + | |
| - | void TakeMaxInventory(str item) | + | |
| - | void TakeMaxActorInventory(int tid, str item) | + | |
| - | + | ||
| - | Takes all items of type '' | + | |
| + | ACSUtils provide extra functions to work with actor inventory. | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||
| + | * [[functions: | ||