HELD

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

Usage
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
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