Add To Local (Cached) Stat

Adds a Delta to a numeric user stat in the local Steam cache. Supports Integer and Float stats. Persist later with Store User Stats & Achievements.
Inputs
Pin |
Type |
Description |
|---|---|---|
Stat API Name |
String |
Exact stat identifier defined in Steamworks (e.g., ST_KILLS). |
Stat Type |
Enum (Integer / Float) |
The numeric stat kind to modify. (Average is not supported here.) |
Delta |
float |
Amount to add. For Integer stats, this is truncated to int32 before applying. |
Outputs
Pin |
Type |
Description |
|---|---|---|
New Value |
float |
The new value after addition. (Integer stats are reported as a float here.) |
Success |
Bool |
true if the local cache was updated. |
Notes
- Call Request Current Stats And Achievements once before using stat nodes (initializes local cache).
- This updates the local Steam cache only—persist with Store User Stats & Achievements.
- Supports Integer and Float stats. For average-rate stats, use Set Local (Cached) Stat with Stat Type = Average (Count & Seconds).
- For Integer stats,
Deltais cast toint32(fraction discarded) before adding. - If it fails, verify the stat name, Steam availability, and that you initialized stats this session.
Typical usage
- On event (e.g., kill/collect): Add To Local (Cached) Stat → periodically Store User Stats & Achievements.
- Optionally confirm via Get Local (Cached) Stat to display the updated value in UI.