Skip to main content

Condition_IsSiteEventRole

Description

Checks whether the entity resolved from BaseObject has a specific role in the currently playing site event. Optionally validates that the entity is at a specific 1-based index within the role's member list.

Parameters

ParameterDescription
BaseObjectThe entity whose site event role is checked (Self or Target).
CompareTypeEqual: entity has the role; NotEqual: entity does not have the role.
S1The site event role ID to check against.
F1Optional 1-based member index within the role. Set to 0 to skip the check.

Examples

DescriptionBaseObjectCommandCompareType
Check if Self has the Role_Guard roleSelfIsSiteEventRoleEqual
Check if Target is not the first Role_Guard memberTargetIsSiteEventRoleNotEqual
Check if Self is the 2nd member of Role_MemberSelfIsSiteEventRoleEqual