[SCRIPT] Script error help - 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: [SCRIPT] Script error help (/thread-19334.html) |
Script error help - liquiddr3amz - 11-24-2012 void OnStart() { AddEntityCollideCallback("Player","scr2","monster",true,1); AddEntityCollideCallback("jim","scr1","monsterend",true,-1); } void monster(string &in asParent, string &in asChild, int alState) { SetEntityActive("jim",true); AddEnemyPatrolNode("jim", "PathNodeArea_1", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_2", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_3", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_4", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_5", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_6", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_7", 0, ""); AddEnemyPatrolNode("jim", "PathNodeArea_8", 0, ""); } void monsterend(string &in asParent, string &in asChild, int alState) { SetEntityActive("jim",false); } void keyfunc(string &in asEntity, string &in type) { SetEntityActive("servant_brute_1",true); StartPlayerLookAt("servant_brute_1",15,15,"") AddTimer("monstertimer",2,"monstertimer"); ShowEnemyPlayerPosition("servant_brute_1"); } void monstertimer(string &in asTimer) { StopPlayerLookAt(); } The non bold code is working fine, i wanted to add a scare event but i keep getting the following error message any suggestions? RE: Script error help - FlawlessHappiness - 11-24-2012 StartPlayerLookAt("servant_brute_1",15,15,"") You forgot a ; at the end RE: Script error help - liquiddr3amz - 11-25-2012 thanks again your awesome help |