Condition_HandCarriedObjectType
Description
Checks if the object currently held in the character's hand matches the specified carriable object type. During a PutDown action, uses the hand selected in PutDownContext; otherwise uses UseHand to determine the hand. If UseHand is not Left or Right, checks both hands (returns true if either hand matches).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose hand-carried object will be checked |
| CompareType | Comparison operator: Equal, NotEqual |
| S1 | EB1CarriableObjectType name to compare against |
| UseHand | Hand selector: Left checks left hand, Right checks right hand; otherwise checks both hands (default) |
Examples
| Description | BaseObject | Command | CompareType | S1 | UseHand |
|---|---|---|---|---|---|
| Check if right-hand object type is Tray | Self | HandCarriedObjectType | Equal | Tray | Right |
| Check if left-hand object type is not Box | Self | HandCarriedObjectType | NotEqual | Box | Left |
| Check if either hand object type is Cup | Self | HandCarriedObjectType | Equal | Cup |
Back to Command FinderSearch and filter all 491 Script Condition documents