(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);
}