Skip to main content

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

ParameterDescription
BaseObjectThe character whose hand-carried object will be checked
CompareTypeComparison operator: Equal, NotEqual
S1EB1ObjectCreatePurpose name to compare against (e.g., Personal, Household, Commercial, FamilyMeal)
UseHandHand selector: Left checks left hand, Right checks right hand; otherwise checks both hands (default)

Examples

DescriptionBaseObjectCommandCompareTypeS1UseHand
Check if right-hand object's CreatePurpose is CommercialSelfHandCarriedObjectCreatePurposeEqualCommercialRight
Check if left-hand object's CreatePurpose is not PersonalSelfHandCarriedObjectCreatePurposeNotEqualPersonalLeft
Check if either hand object's CreatePurpose is FamilyMealSelfHandCarriedObjectCreatePurposeEqualFamilyMeal