Skip to main content

Condition_HandCarriedObjectState

Description

Checks if the object currently held in the character's right hand has the specified state (StateGroupId + StateId). During a PutDown action, uses the hand selected in PutDownContext instead. To check the left hand, use Condition_LeftHandCarriedObjectState.

Parameters

ParameterDescription
BaseObjectThe character whose right-hand object state will be checked
CompareTypeComparison operator: Equal, NotEqual
S1StateGroupId to compare against
S2StateId to compare against

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Check if right-hand object state is Normal/NormalSelfHandCarriedObjectStateEqualNormalNormal
Check if right-hand object state is not Broken/BrokenSelfHandCarriedObjectStateNotEqualBrokenBroken