Triggering the Death Menu

From The DarkMod Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.