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
| Parameter | Description |
|---|---|
| BaseObject | The entity whose site event role is checked (Self or Target). |
| CompareType | Equal: entity has the role; NotEqual: entity does not have the role. |
| S1 | The site event role ID to check against. |
| F1 | Optional 1-based member index within the role. Set to 0 to skip the check. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self has the Role_Guard role | Self | IsSiteEventRole | Equal |
| Check if Target is not the first Role_Guard member | Target | IsSiteEventRole | NotEqual |
| Check if Self is the 2nd member of Role_Member | Self | IsSiteEventRole | Equal |
Back to Command FinderSearch and filter all 491 Script Condition documents