Condition_HasStateObjectAtSite
Description
Checks whether any game object near BaseObject (within AOI range) has the state specified by S1 (StateGroupId) and S2 (StateId). Uses AOI-based proximity search for performance, avoiding a full site iteration.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose location is used as the AOI search origin |
| CompareType | Equal: returns true if a matching state object is found; NotEqual: otherwise |
| S1 | StateGroupId of the state to look for on nearby game objects |
| S2 | StateId of the state to look for on nearby game objects |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if a specific state object exists near the actor | Self | HasStateObjectAtSite | Equal |
| Check that no matching state object is nearby | Self | HasStateObjectAtSite | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents