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
IT WORKS! yay
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#10
RE: Player Respawn on other map

(04-11-2012, 03:03 PM)Mackiiboy Wrote:
(04-11-2012, 02:56 PM)jessehmusic Wrote: So the Changemap is the callback ? getting confused ?
.
MyFunc or whatever you are going to call it is the callback. That function should call the ChangeMap.
.
void CheckPoint (string& asName, string& asStartPos, string&asCallback, string& asDeathHintCat, string& asDeathHintEntry);

asCallback - the function to call when the player dies/respawns

So, when you die, a function will be called, lets call it MyFunc.

That function has the callback syntax (string &in asName, int alCount)

void MyFunc(string &in asName, int alCount)
{
// Put everything here that you want to happen after death
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
}
okey i got the changemap now but Daniel start looking in the ground and he donst stop any clue?


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-11-2012, 03:16 PM
Website Find


Messages In This Thread
IT WORKS! yay - by jessehmusic - 04-11-2012, 02:29 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 02:48 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 02:54 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:03 PM
RE: Player Respawn on other map - by jessehmusic - 04-11-2012, 03:16 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:24 PM
RE: Player Respawn on other map - by Stepper321 - 04-11-2012, 02:48 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:36 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:42 PM
RE: Player Respawn on other map - by Mackiiboy - 04-11-2012, 03:51 PM
RE: Player Respawn on other map - by DRedshot - 04-11-2012, 03:50 PM



Users browsing this thread: 1 Guest(s)