Description
Checks if the BaseObject has a specific state within a state group.
Unlike Condition_State, this checks if the object possesses a given state in any position, not only the current active state.
Parameters
| Parameter | Description |
|---|
| BaseObject | Target GameObject to check the state |
| CompareType | Equal (has state) / NotEqual (does not have state) |
| S1 | State Group ID to search in |
| S2 | State ID to check for |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|
| Check if Target has the "Broken" state | Target | HasState | Equal | Normal | Broken |
| Check if Target does not have the fire state | Target | HasState | NotEqual | Fire | OnFire |
| Check if Self has the "Wet" state | Self | HasState | Equal | Weather | Wet |