Welcome to the Creatures Wiki! Log in and join the community.
HELD
Jump to navigation
Jump to search
HELD is a CAOS function that returns the item currently held by the target.
Usage[edit]
Syntax: HELD
Returns the agent currently held by the target. If the target is a vehicle holding more than one agent, it will return one at random.
Example[edit]
In the official scripts, this is usually used to check if the Hand is holding something. For example, part of the Inventory scripts, normally commented out:
scrp 1 2 11 75 inst targ pntr doif held <> null doif hots = ownr **code to open inventory