Skip to main content

Execute_ChangeStateInRange

Description

Changes the state of all GameObjects within a specified 2D distance from the BaseObject's location.

Parameters

ParameterDescription
BaseObjectThe entity used as the origin point for the range check
S1State Group ID to change to (defaults to "Normal" if None)
S2State ID to change to (defaults to "Normal" if None)
F1Maximum 2D distance (radius) from the BaseObject; all objects within range are affected

Examples

DescriptionBaseObjectCommandS1S2F1
Change all objects within 500 of Target to Fire stateTargetChangeStateInRangeNoneFire500
Reset all objects within 500 of Self from Fire to NormalSelfChangeStateInRangeFireNone500
Change all objects within 200 of Target to Wet stateTargetChangeStateInRangeWeatherWet200