Frictional Games Forum (read-only)
CheckPoint from areas (CS Amnesia) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: CheckPoint from areas (CS Amnesia) (/thread-25069.html)



CheckPoint from areas (CS Amnesia) - Zahashi - 04-13-2014

void OnEnter()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Restart", true, 1);
AddEntityCollideCallback("Player","MonsterArea","Apparition", true, 1);
AddEntityCollideCallback("Player","WeirdArea","Bizarre", true, 1);
AddEntityCollideCallback("Player","MinceArea","Mince", true, 1);
AddUseItemCallback("","Key","Prison_Door", "Key_On", true);
AddTimer("TimerName", 0, "Apparition");
}

void Restart(string &in asParent, string &in asChild, int alState)
{
CheckPoint("", "PlayerStartArea_4","DeathCategory", "Deathtext");
}

Please Help, i followed this tutorial : http://wiki.frictionalgames.com/hpl2/tutorials/scripting/checkpoints_using_scriptarea_s

But it doesn't work and error =" ERR ; No matching signatures to 'CheckPoint(string@&,string@&,string@&,string@&)' "

(I'm french so i don't understand everytime)


RE: CheckPoint from areas (CS Amnesia) - Mudbill - 04-13-2014

You're missing a string parameter in your CheckPoint line.

PHP Code:
void CheckPoint (stringasNamestringasStartPosstringasCallbackstringasDeathHintCatstringasDeathHintEntry); 

I believe it's the callback.