Skip to main content

Spawning

Runs before UCR gives a player a custom role. Use IsAllowed false to stop the spawn.

Start a script section​

!-- OnUCR Spawning
-- require @evPlayer *evRole $evIsAllowed

# Add your instructions here
  • Group: CustomRoleEvents
  • Cancellable: Yes
  • Event data: CustomRoleSpawningEventArgs

Injected variables​

VariableTypeDescription
@evPlayerplayer valueThe player involved in this event.
*evRolereference to UCRRole objectThe UCR role involved in this event.
$evIsAllowedbool valueWhether UCR will continue the action.