Welcome to the Creatures Wiki! Log in and join the community.


From Creatures Wiki
Jump to navigation Jump to search

HELD is a CAOS function that returns the item currently held by the target.


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.


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
	targ pntr
	doif held <> null
		doif hots = ownr
		**code to open inventory