(01-19-2012, 03:32 PM)oscar1007 Wrote: Hello!
Does anyone know how to make it?
So far i have only made a script area where the "checkpoint" is going to happen.
Someone help me?
void OnStart()
{
AddEntityCollideCallback("Player", "checkpoint", "CheckPointActive", true, 1);
}
void CheckPointActive(string &in asParent, string &in asChild, int alState)
{
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
}
asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file
Need more help just ask.