Skip to main content

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

ParameterDescription
BaseObjectThe character whose location is used as the AOI search origin
CompareTypeEqual: returns true if a matching state object is found; NotEqual: otherwise
S1StateGroupId of the state to look for on nearby game objects
S2StateId of the state to look for on nearby game objects

Examples

DescriptionBaseObjectCommandCompareType
Check if a specific state object exists near the actorSelfHasStateObjectAtSiteEqual
Check that no matching state object is nearbySelfHasStateObjectAtSiteNotEqual