Execute_ChangeState
Description
Changes the state of the BaseObject to the specified state. The instigator (entity that caused the state change) is set to the non-BaseObject entity.
Note
If S1 or S2 is None, they default to "Normal".
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Target GameObject whose state is changed |
| S1 | State Group ID (defaults to "Normal" if None) |
| S2 | State ID to change to (defaults to "Normal" if None) |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Set Target to the Broken state | Target | ChangeState | Normal | Broken |
| Set Target on fire | Target | ChangeState | Fire | OnFire |
| Reset Target to normal state | Target | ChangeState | Normal | Normal |
| Turn on the light | Target | ChangeState | Light | On |