Wrong script!Why!? - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Wrong script!Why!? (/thread-6059.html) |
RE: Wrong script!Why!? - Janni1234 - 01-05-2011 FATAL ERROR; Could not load script file 'custom _stories/.....hps'! (my script file) main (4,39) : ERR : Expected ';' main (9,38) : Expected ';' RE: Wrong script!Why!? - xiphirx - 01-05-2011 Code: void OnStart() Code: void OnStart() Before and after *** *** denotes the changes I made. Again, you're making basic syntax mistakes. You would figure this out on your own if you took the 3 minutes to re-read your script. RE: Wrong script!Why!? - Janni1234 - 01-05-2011 Ahh Thanks! Im an idiot! It works now! RE: Wrong script!Why!? - Janni1234 - 01-05-2011 My Enemy File: void areabrute1(string &in asParent , string &in asChild , int alState) { SetEntityActive("servant_brute_1", true); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_8", 0, ""); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_9", 0, ""); PlaySoundAtEntity("Player", "react_pant.snt", "brick_pile01_2", 0, false); } RE: Wrong script!Why!? - Tottel - 01-06-2011 .. And? Again, post the error message. RE: Wrong script!Why!? - Janni1234 - 01-06-2011 How can i use keys in my scripting file? RE: Wrong script!Why!? - ModManDann - 01-06-2011 I don't think map scripts support hooks onto direct user input. Perhaps you can find something about this on angelscript. RE: Wrong script!Why!? - Janni1234 - 01-06-2011 @ModManDann Can you send me your scripting file with a key script?if you have one?and nice map^^ At the beginning i was hanging on the wall xD RE: Wrong script!Why!? - ModManDann - 01-06-2011 What do you mean with a key script? If you mean a trigger that happens if you press a key on your keyboard, it's likely not supported by amnesia level scripting. Edit: I wasn't thinking clear.. You mean a key script for doors I assume. RE: Wrong script!Why!? - Janni1234 - 01-06-2011 Not for my keyboard.yup,for doors. |