Condition_HandCarriedObjectCreatePurpose
Description
Checks if the object currently held in the character's hand matches the specified CreatePurpose. 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 | EB1ObjectCreatePurpose name to compare against (e.g., Personal, Household, Commercial, FamilyMeal) |
| 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's CreatePurpose is Commercial | Self | HandCarriedObjectCreatePurpose | Equal | Commercial | Right |
| Check if left-hand object's CreatePurpose is not Personal | Self | HandCarriedObjectCreatePurpose | NotEqual | Personal | Left |
| Check if either hand object's CreatePurpose is FamilyMeal | Self | HandCarriedObjectCreatePurpose | Equal | FamilyMeal |
Back to Command FinderSearch and filter all 491 Script Condition documents