Spawning
Gets called when the player is spawning.
Start a script section
!-- OnEvent Spawning
-- require @evPlayer *evRole $evUseSpawnPoint *evSpawnLocation $evHorizontalRotation $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerSpawningEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is being spawned. |
*evRole | reference to PlayerRoleBase object | Gets the role that is being applied. |
$evUseSpawnPoint | bool value | Gets or sets if spawn point should be used. |
*evSpawnLocation | reference to Vector3 object | Gets or sets spawn location. |
$evHorizontalRotation | number value | Gets or sets horizontal rotation of spawn. |
$evIsAllowed | bool value | Whether the event is allowed to run. |