Skip to main content

Condition_IsCharacterRole

Description

This condition function determines whether the specified BaseObject (character) has the role specified in the S1 parameter.

Parameters

ParameterDescription
BaseObjectThe character to check (Self or Target).
CompareTypeSupported compare types: Equal, NotEqual.
S1The character role to compare (e.g., Police, FireFighter).

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if my Zoi is a police officerSelfIsCharacterRoleEqualPolice
Check if the target character is a firefighterTargetIsCharacterRoleEqualFireFighter
Check if my Zoi is not a police officerSelfIsCharacterRoleNotEqualPolice