Skip to main content

Execute_ChangeStateAllInSite

Description

Changes the state of all objects sharing the same ObjectSelectionSetId as the Target within the Self character's current Site.

Note

Requires the Self entity to be a Character with a valid LocatedSiteId. The Target object's ObjectSelectionSetId is used to find all matching objects in the Site.

Parameters

ParameterDescription
BaseObjectTarget GameObject whose ObjectSelectionSetId is used to find matching objects
S1State Group ID to change to (defaults to "Normal" if None)
S2State ID to change to (defaults to "Normal" if None)

Examples

DescriptionBaseObjectCommandS1S2
Turn on all matching lights in the siteTargetChangeStateAllInSiteLightOn
Turn off all matching TVs in the siteTargetChangeStateAllInSitePowerOff
Set all matching decorations to holiday stateTargetChangeStateAllInSiteNormalHoliday