(04-05-2015, 03:31 PM)Darkfire Wrote: Yes: The function that I called "CheckP" is called when you die. You see, when the monster entity is activated, the invisible/unactive one reappears after the active one vanishes. At least that is how I see it; it also may reappear when you die. Anyway, you get the point. If you want to see how FG made it in original, go to map 24_torture_choir_east.
What is wrong with this code?:
void OnStart()
{
SetEntityCallbackFunc("Note", "Spawn");
}
void Spawn(string &in asEntity, string &in type)
{
SetEntityActive("Monster", true);
ShowEnemyPlayerPosition("Monster");
CheckPoint ("C" "PlayerStartArea_2", "CheckP", "Hints"", "Normal");
}
void CheckP(string &in asName, int alCount)
{
SetEntityActive("Monster", true);
ShowEnemyPlayerPosition("Monster");
CheckPoint ("C" "PlayerStartArea_2", "CheckP", "Hints"", "Normal");
}
the error code is
main (10,60): ERR: Expected')' or ','