Condition_HandCarriedObjectId
Description
Checks if the object currently held in the character's hand has the specified ObjectId. During a PutDown action, uses the hand selected in PutDownContext. If UseHand is not specified, checks both hands (right first, then left).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose hand-carried object will be checked |
| CompareType | Comparison operator: Equal, NotEqual |
| S1 | The ObjectId to compare against |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if character holds a specific tray in either hand | Self | HandCarriedObjectId | Equal | Tray_Wooden_01 |
| Check if character does not hold a specific item | Target | HandCarriedObjectId | NotEqual | Box_Paper_01 |
Back to Command FinderSearch and filter all 491 Script Condition documents