Skip to main content

Execute_ModifyGrabbedObjectStat

Description

Adds a stat value to the object currently grabbed in the BaseObject's specified hand.

Parameters

ParameterDescription
BaseObjectThe entity whose held (grabbed) object will have its stat modified
S1Stat name to modify on the grabbed object
S2Hand type (EB1HandType enum name) specifying which hand to check, e.g., RightHand, LeftHand
F1Amount of stat to add (negative values are allowed)

Examples

DescriptionBaseObjectCommandS1S2F1
Add 10 Hungry to the object in Self's right handSelfModifyGrabbedObjectStatHungryRightHand10
Subtract 5 Energy from the object in Self's left handSelfModifyGrabbedObjectStatEnergyLeftHand-5
Add 20 Cleanliness to the object grabbed in Target's right handTargetModifyGrabbedObjectStatCleanlinessRightHand20