Script Problem! - 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 Problem! (/thread-9231.html) |
Script Problem! - JoeBradleyUK - 07-18-2011 My Script won't work, what's wrong with it? Code: //////////////////////////// RE: Script Problem! - Tanshaydar - 07-18-2011 ("Storage_Enemy, true); -> ("Storage_Enemy", true); RE: Script Problem! - JoeBradleyUK - 07-18-2011 Ok, now that is working it seems that the path nodes (I think) are not working as I got a lot more errors than before! RE: Script Problem! - JenniferOrange - 07-18-2011 AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""; should be changed to AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""); *you have to remember to add the ending parenthesis! Fix that on all of your patrol nodes and it should work!* RE: Script Problem! - JoeBradleyUK - 07-18-2011 (07-18-2011, 09:39 PM)JenniferOrange Wrote: AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""; should be changed to AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""); Oh thanks, aha that, was just a silly mistake which I didn't see some reason! (07-18-2011, 10:14 PM)JoeBradleyUK Wrote:(07-18-2011, 09:39 PM)JenniferOrange Wrote: AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""; should be changed to AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", ""); Another thing, do monsters disappear on their own? If not how would I make them disappear at a certain pathnode? RE: Script Problem! - MrCookieh - 07-18-2011 Monsters disappear, if they are hallucinations (coming near to you), or if they are standing around and have nothing to do. If you want them to disappear at a certain pathnode: Code: void OnStart(){ RE: Script Problem! - JoeBradleyUK - 07-18-2011 (07-18-2011, 10:25 PM)MrCookieh Wrote: Monsters disappear, if they are hallucinations (coming near to you), or if they are standing around and have nothing to do. Thanks! You guys on the forum are really helpful |