Skip to main content

Spawned

Runs after UCR gives a player a custom role.

Start a script section​

!-- OnUCR Spawned
-- require *evInstance @evPlayer *evRole

# Add your instructions here
  • Group: CustomRoleEvents
  • Cancellable: No
  • Event data: CustomRoleSpawnedEventArgs

Injected variables​

VariableTypeDescription
*evInstancereference to UCRRoleInstance objectThe UCR role instance involved in this event.
@evPlayerplayer valueThe player involved in this event.
*evRolereference to UCRRole objectThe UCR role involved in this event.