NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


obsolete:lua:lua_respawnplayer

Lua RespawnPlayer

void RespawnPlayer( int playerIndex );

Description

Force the player to INSTANTLY respawn. This does not cause the player to suicide, they will vanish and go to their chosen spawn spot. *NOTE* If the player cannot respawn due to restrictions placed in CanPlayerRespawn then they will not respawn.

Version

Beta 3.1

Example

0@@
obsolete/lua/lua_respawnplayer.txt ยท Last modified: 2023/09/03 18:43 by 127.0.0.1