Execute_ChangeStateInRange
Description
Changes the state of all GameObjects within a specified 2D distance from the BaseObject's location.
Parameters
| Parameter | Description |
|---|
| BaseObject | The entity used as the origin point for the range check |
| S1 | State Group ID to change to (defaults to "Normal" if None) |
| S2 | State ID to change to (defaults to "Normal" if None) |
| F1 | Maximum 2D distance (radius) from the BaseObject; all objects within range are affected |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 |
|---|
| Change all objects within 500 of Target to Fire state | Target | ChangeStateInRange | None | Fire | 500 |
| Reset all objects within 500 of Self from Fire to Normal | Self | ChangeStateInRange | Fire | None | 500 |
| Change all objects within 200 of Target to Wet state | Target | ChangeStateInRange | Weather | Wet | 200 |