WaveRespawning
Gets called when the server is respawning a wave.
Start a script section
!-- OnEvent WaveRespawning
-- require $evIsAllowed *evWave @evSpawningPlayers &evRoles
# Add your instructions here
- Group: ServerEvents
- Cancellable: Yes
- Event data:
WaveRespawningEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
$evIsAllowed | bool value | Whether the event is allowed to run. |
*evWave | reference to RespawnWave object | Team wave is respawning. |
@evSpawningPlayers | player value | Gets all players that are about to respawn. |
&evRoles | collection of reference to KeyValuePair<Player, RoleTypeId> object | The dictionary containing players and their roles with will spawn with. Note that this dictionary is pooled and will be returned to one after this event runs. Do not save it outside of this event's scope. |