Condition_IsCharacterRole
Description
This condition function determines whether the specified BaseObject (character)
has the role specified in the S1 parameter.
Parameters
| Parameter | Description |
|---|
| BaseObject | The character to check (Self or Target). |
| CompareType | Supported compare types: Equal, NotEqual. |
| S1 | The character role to compare (e.g., Police, FireFighter). |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|
| Check if my Zoi is a police officer | Self | IsCharacterRole | Equal | Police |
| Check if the target character is a firefighter | Target | IsCharacterRole | Equal | FireFighter |
| Check if my Zoi is not a police officer | Self | IsCharacterRole | NotEqual | Police |