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
| Parameter | Description |
|---|---|
| BaseObject | Target GameObject whose ObjectSelectionSetId is used to find matching objects |
| S1 | State Group ID to change to (defaults to "Normal" if None) |
| S2 | State ID to change to (defaults to "Normal" if None) |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Turn on all matching lights in the site | Target | ChangeStateAllInSite | Light | On |
| Turn off all matching TVs in the site | Target | ChangeStateAllInSite | Power | Off |
| Set all matching decorations to holiday state | Target | ChangeStateAllInSite | Normal | Holiday |