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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | The player involved in this event. |
*evRole | reference to UCRRole object | The UCR role involved in this event. |
$evIsAllowed | bool value | Whether UCR will continue the action. |