Skip to main content

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

VariableTypeDescription
$evIsAllowedbool valueWhether the event is allowed to run.
*evWavereference to RespawnWave objectTeam wave is respawning.
@evSpawningPlayersplayer valueGets all players that are about to respawn.
&evRolescollection of reference to KeyValuePair<Player, RoleTypeId> objectThe 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.