Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Over Module Help [SOLVED]
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#3
RE: Game Over Module Help

Until you find a better way, you can do this by forcing a ChangeMap when the player dies.

PHP Code: (Select All)
void OnPlayerKilled(int alRecentDeaths, const tString&in asSource)
{
          
Map_ChangeMap("start.hpm","PlayerStartArea_1","","");


You may want to add a delay in there with a timer to give the player time to read the death message.

Another way may be using a flag to know if the player died. Then if the OnEnter event triggers too when the player respawns, you check there the flag and change map.

05-09-2016, 01:15 AM
Find


Messages In This Thread
Game Over Module Help [SOLVED] - by A.M Team - 05-08-2016, 02:47 PM
RE: Game Over Module Help - by Abion47 - 05-08-2016, 09:41 PM
RE: Game Over Module Help - by Daemian - 05-09-2016, 01:15 AM
RE: Game Over Module Help - by A.M Team - 05-11-2016, 07:10 PM



Users browsing this thread: 2 Guest(s)