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
CheckPoint from areas (CS Amnesia)
Zahashi Offline
Junior Member

Posts: 1
Threads: 2
Joined: Apr 2014
Reputation: 0
#1
CheckPoint from areas (CS Amnesia)

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/tut...riptarea_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)
04-13-2014, 05:37 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: CheckPoint from areas (CS Amnesia)

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

PHP Code: (Select All)
void CheckPoint (stringasNamestringasStartPosstringasCallbackstringasDeathHintCatstringasDeathHintEntry); 

I believe it's the callback.

04-13-2014, 09:44 PM
Find




Users browsing this thread: 1 Guest(s)