Gamemode.PlayerSelectSpawn
From GMod Wiki
Event Hook | |
Hook Name | PlayerSelectSpawn |
Syntax | GM:PlayerSelectSpawn( Player Player ) |
Description | Called whenever a player dies and needs to respawn. |
Returns | Returns the entity object of the spawn point. |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSelectSpawn]Gamemode.PlayerSelectSpawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Returning nil (by default, when there's no spawnpoints available) will crash the game with a 'Pure virtual function call'.