Skip to main content

Spawned

Gets called when the player has spawned.

Start a script section

!-- OnEvent Spawned
-- require @evPlayer *evRole $evUseSpawnPoint *evSpawnLocation $evHorizontalRotation

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerSpawnedEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who spawned.
*evRolereference to PlayerRoleBase objectGets the role that was applied.
$evUseSpawnPointbool valueGets or sets if spawn point should be used.
*evSpawnLocationreference to Vector3 objectGets spawn location.
$evHorizontalRotationnumber valueGets horizontal rotation of spawn.