Execute_ModifyGrabbedObjectStat
Description
Adds a stat value to the object currently grabbed in the BaseObject's specified hand.
Parameters
| Parameter | Description |
|---|
| BaseObject | The entity whose held (grabbed) object will have its stat modified |
| S1 | Stat name to modify on the grabbed object |
| S2 | Hand type (EB1HandType enum name) specifying which hand to check, e.g., RightHand, LeftHand |
| F1 | Amount of stat to add (negative values are allowed) |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 |
|---|
| Add 10 Hungry to the object in Self's right hand | Self | ModifyGrabbedObjectStat | Hungry | RightHand | 10 |
| Subtract 5 Energy from the object in Self's left hand | Self | ModifyGrabbedObjectStat | Energy | LeftHand | -5 |
| Add 20 Cleanliness to the object grabbed in Target's right hand | Target | ModifyGrabbedObjectStat | Cleanliness | RightHand | 20 |