Execute_RunScriptToTargetInSite
Description
Runs the specified script on each object located within the same site as the BaseObject.
The BaseObject must be a valid game object with a valid located site. The script is run
using B2SiteActionHelper on all objects registered in that site.
Parameters
| Parameter | Description |
|---|
| BaseObject | The game object whose located site determines which objects are targeted. |
| S1 | Script ID to execute on each object in the site (State data asset ID). |
Examples
| Description | BaseObject | Command | S1 |
|---|
| Run "Cleanup" script on all objects in Self's located site | Self | RunScriptToTargetInSite | Cleanup |
| Run "Inspect" script on all objects in Target's located site | Target | RunScriptToTargetInSite | Inspect |
| Execute "Reset" script for every object in the site | Self | RunScriptToTargetInSite | Reset |