![]() |
[SCRIPT] A bit confused. 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] A bit confused. Help? (/thread-17192.html) |
A bit confused. Help? - Zjurc - 07-22-2012 Okay so I scripted for a while, etc. And when I got to half, I though 'Hey, lets test it out!' But my game crashed and it displayed some weird errors I cannot seem to solve :c I would really appreciate if you could take a look and see what's wrong. Thanks! This is the error it is displaying: ![]() And this is the script: Quote:void OnStart() Thanks in advance! Keep in mind this script is still WIP so yeah I am aware that last void is literally empty and serves no purpose. RE: A bit confused. Help? - Steve - 07-22-2012 you forgot ); at: AddTimer("", 0.2, "SighInRelief" AddTimer("", 0.4, "WATCHOUT" AddTimer("", 0.3, "LookRight" so make it: AddTimer("", 0.2, "SighInRelief"); AddTimer("", 0.4, "WATCHOUT"); AddTimer("", 0.3, "LookRight"); and you have at: PlaySoundAtEntity("GUARDIAN_MAAAAD", "guardian_activated.snt", "CreepyBitch", "3", false); "3" should be just 3 so make it: PlaySoundAtEntity("GUARDIAN_MAAAAD", "guardian_activated.snt", "CreepyBitch", 3, false); I hope this helps ![]() RE: A bit confused. Help? - Zjurc - 07-22-2012 Oh! How am I so stupid? Thanks! ![]() Now another error while doing that is bugging me ![]() Okay, Imagine all of those problems are fixed (can't be asked to paste the fixed code now) and lets look at this confusing error: ![]() Got any ideas? Highly appreciated! RE: A bit confused. Help? - Steve - 07-22-2012 that's this part: StartPlayerLookAt("LookBack", 0.5, ""); you forgot one part of the code/script you should have on more "" you have it right in your other StartPlayerLookAt's make it something like this: StartPlayerLookAt("LookBack", 0.5, 0, ""); glad to help ;p RE: A bit confused. Help? - Zjurc - 07-22-2012 Oh my, thank you very much! Its fully working now! ![]() RE: A bit confused. Help? - PixelHurricane - 07-24-2012 Just for the future, when it says it expected something look at the two numbers it give you. the first one is the vertical column, and the second is which character it is in that line. by using the two coords along with what it was excepting you can usually figure it out. |