jessehmusic
Senior Member
Posts: 423
Threads: 102
Joined: Dec 2011
Reputation:
8
|
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?
|
|
04-11-2012, 03:16 PM |
|