Skip to main content

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

ParameterDescription
BaseObjectThe character or game object used to determine which site receives the usage.
S1Service type ID to add usage for (e.g., Water, Electricity, Heating).
F1Base usage amount to add (scaled by the object's efficiency multiplier).

Examples

DescriptionBaseObjectCommandS1F1
Add 1 usage of Water service to Self's home siteSelfAddServiceUsageWater1
Add 2 usages of Electricity service to Target's located siteTargetAddServiceUsageElectricity2
Add 5 usages of Heating service to the siteSelfAddServiceUsageHeating5