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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who spawned. |
*evRole | reference to PlayerRoleBase object | Gets the role that was applied. |
$evUseSpawnPoint | bool value | Gets or sets if spawn point should be used. |
*evSpawnLocation | reference to Vector3 object | Gets spawn location. |
$evHorizontalRotation | number value | Gets horizontal rotation of spawn. |