trigger_respawn

From Sven Co-op
Jump to navigation Jump to search
trigger_respawn
Type

point

Status

supported

 


This entity, by default, respawns all players when triggered. Alive players will only be relocated to active spawnpoints and have their health restored to their maximum health, unless special flag selected. They keep their equipment. You can also specify that only dead players get respawned by this entity.

1 Keyvalues

Target : target

Target entity to respawn when "Respawn target" is set.

2 Flags

1 : Respawn Target

If set, trigger_respawn will respawn only the player by this targetname. If the target is not a player, the spawn-function of that entity will be called. This can sometimes help to process entity-specific keyvalues which are only read when the entity first spawns. However, it might cause unexpected entity behaviour or crashes in the worst case.

2 : Respawn dead players

If set, only players that are dead in a moment of triggering this entity are respawned.

4 : Don't Move Living Players

If set, living players won't be relocated to spawnpoints.

3 Changes

5.0 Steam Release: Added 'Respawn dead players' and 'Don't Move Living Players' flags.