Frictional Games Forum (read-only)
ShowEnemyPlayerPosition "" is not delcared - 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: ShowEnemyPlayerPosition "" is not delcared (/thread-9288.html)



ShowEnemyPlayerPosition "" is not delcared - Rapture - 07-21-2011

I am copying this from the 2nd map from Justine. I'm not really sure what it means by.

"FATAL ERROR: Could not load script file 'custom_stories/Map05/Ch01/map05.hps'! main (248, 26) : ERR : 'servant_brute_1' is not declared

Where do I declare it and how?
Code:
void Enemy1Patrol(string &in asTimer)
{
    SetEntityActive("servant_brute_1", true);
    ShowEnemyPlayerPosition(servant_brute_1);    
//    AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_25", 1.0f, "");
//    AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_26", 0.0f, "");
}



RE: ShowEnemyPlayerPosition "" is not delcared - MrCookieh - 07-21-2011

you need " " around the servant_brute_1

ShowEnemyPlayerPosition("servant_brute_1");

the system thinks you're using a variable, which wasn't set before.


RE: ShowEnemyPlayerPosition "" is not delcared - Rapture - 07-21-2011

(07-21-2011, 07:18 PM)MrCookieh Wrote: you need " " around the servant_brute_1

ShowEnemyPlayerPosition("servant_brute_1");

the system thinks you're using a variable, which wasn't set before.
Thanks! I hate it when you miss those minor things.