Triggering the Death Menu: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
Because the server handles respawns or something, not the local game. | Because the server handles respawns or something, not the local game. | ||
{{sdk}} |
Latest revision as of 13:06, 2 July 2008
Originally written by Ishtvan on http://forums.thedarkmod.com/topic/3764
To instantly trigger the menu that comes up when you die, this command is used:
gameLocal.sessioncommand("died")
In multiplayer, I believe you have to use this:
player->forceRespawn = true;
Because the server handles respawns or something, not the local game.