Skip to main content

Condition_FilmRole

Description

Checks whether the current site event of the entity resolved from BaseObject casts the S1 film role (FilmContext.RoleId). Returns false when the event has no film.

Parameters

ParameterDescription
BaseObjectThe entity whose current site event is checked.
CompareTypeEqual: the role matches; NotEqual: it does not.
S1Film role id (one of Film.RoleInfos.RoleId).

Examples

DescriptionBaseObjectCommandCompareTypeS1
Cast as the lead of the filmSelfFilmRoleEqualLead