Skip to main content

Condition_CheckEntityCountInAura

Description

Checks the number of entities within the aura range of the specified BaseObject. Retrieves the aura identified by S1 and counts entities of the type specified by S2 within that aura's range. The resulting count is compared against F1 (and optionally F2) using CompareType.

Note

S2 accepts EB2EntityType values: Character (Zoi), GameObject, etc. F2 is only required when CompareType is InRange or OutRange.

Parameters

ParameterDescription
BaseObjectThe entity whose aura is evaluated (Self or Target).
CompareTypeComparison operator (Equal, Greater, InRange, OutRange, etc.).
S1Aura ID owned by the BaseObject (e.g., ProximityAura).
S2Entity type to count within the aura (e.g., Character, GameObject).
F1Count threshold for comparison.
F2Upper bound for range comparisons (InRange or OutRange only).

Examples

DescriptionBaseObjectCommandCompareTypeS1S2F1F2
Check if any character exists in self's auraSelfCheckEntityCountInAuraGreaterAuraIdCharacter0
Check if any GameObject exists in self's auraSelfCheckEntityCountInAuraGreaterAuraIdGameObject0
Check if no GameObject exists in self's auraSelfCheckEntityCountInAuraEqualAuraIdGameObject0
Check if 20 to 30 characters exist in self's auraSelfCheckEntityCountInAuraInRangeAuraIdCharacter2030