The Respawn command respawns the targeted players, dead or alive, either where they are (stay, the default) or at the spot the caller is looking at (tp).

Summary

Methods

Respawns the targeted players and notifies them and staff.

Methods

CMD:on_run(actor, targets, spawn_position)

shared plugins/admin/plugin/commands/sh_respawn.lua:21

Respawns the targeted players and notifies them and staff. A living target is respawned in place: they keep their position and the direction they look in. A dead target comes back at their last known position.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console
  • targets List<Player> players to respawn
  • spawn_position String optional, defaults to 'stay' 'stay' for where the target is (or was last seen, if they are dead), 'tp' for the spot the caller is looking at; the server console can only use 'stay'

Defined in