Gamemode.PlayerSelectSpawn
From GMod Wiki
Revision as of 16:29, 25 September 2009 by Crazy Quebecer (Talk | contribs)
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'.