ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
new:inventory [2018/02/18 18:12] korshunnew:inventory [2018/02/18 18:13] (current) korshun
Line 22: Line 22:
 Take all items of type ''itemname'' from actor. Shorthand for ''TakeInventory(itemname, INT_MAX)''. Take all items of type ''itemname'' from actor. Shorthand for ''TakeInventory(itemname, INT_MAX)''.
  
 +===== ToggleInventory =====
 +
 +  * ''void ToggleInventory(str itemname)''
 +  * ''void ToggleActorInventory(str itemname)''
 +
 +If the actor has no ''itemname'', give one item of this type. If it has one or more item of ''itemname'', take them all.
 +
 +This is a shorter way of writing ''x = !x'' when using inventory items as boolean variables.
  
new/inventory.1518970336.txt.gz · Last modified: 2018/02/18 18:12 by korshun