Frictional Games Forum (read-only)

Full Version: ShowEnemyPlayerPosition "" is not delcared
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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, "");
}
you need " " around the servant_brute_1

ShowEnemyPlayerPosition("servant_brute_1");

the system thinks you're using a variable, which wasn't set before.
(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.