Execute_AddServiceUsage
Description
Adds service usage to the site associated with the BaseObject. If the BaseObject is a character, the interacted game object is found separately. The usage amount (F1) is scaled by an efficiency multiplier derived from the object's quality rating. If the BaseObject is a character, usage is added to the character's home site; otherwise it uses the object's located site.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character or game object used to determine which site receives the usage. |
| S1 | Service type ID to add usage for (e.g., Water, Electricity, Heating). |
| F1 | Base usage amount to add (scaled by the object's efficiency multiplier). |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| Add 1 usage of Water service to Self's home site | Self | AddServiceUsage | Water | 1 |
| Add 2 usages of Electricity service to Target's located site | Target | AddServiceUsage | Electricity | 2 |
| Add 5 usages of Heating service to the site | Self | AddServiceUsage | Heating | 5 |
Back to Command FinderSearch and filter all 399 Script Execution documents