Skip to main content

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

ParameterDescription
BaseObjectThe game object whose located site determines which objects are targeted.
S1Script ID to execute on each object in the site (State data asset ID).

Examples

DescriptionBaseObjectCommandS1
Run "Cleanup" script on all objects in Self's located siteSelfRunScriptToTargetInSiteCleanup
Run "Inspect" script on all objects in Target's located siteTargetRunScriptToTargetInSiteInspect
Execute "Reset" script for every object in the siteSelfRunScriptToTargetInSiteReset