Skip to main content

Execute_AddScaledStat

Description

Adds a value to the specified stat scaled by the TimeManager's relative time factor.

Parameters

ParameterDescription
BaseObjectThe entity whose stat is modified
S1Stat ID to modify (e.g., Hungry, Energy, Bladder)
F1Base amount to add before scaling by the relative time factor

Examples

DescriptionBaseObjectCommandS1F1
Add time-scaled 1.0 to Self's Hungry statSelfAddScaledStatHungry1.0
Subtract time-scaled 0.5 from Target's Energy statTargetAddScaledStatEnergy-0.5
Add time-scaled amount to Self's Bladder statSelfAddScaledStatBladder2.0