![]() |
Some wierd bug - 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: Some wierd bug (/thread-13512.html) |
Some wierd bug - Ardoetia - 02-22-2012 First off, I have a bug with the .lang file, or to more exact, the letter function. Code: And some bug with one of my maps, it doesent give any crash or typo wrongs. Code: void Onstart() None of them works, nothing happens when i go inside script area. RE: Some wierd bug - Unearthlybrutal - 02-22-2012 Timer's syntax is (string &in asTimer), and not (string &in asParent, string &in asChild, int alState). RE: Some wierd bug - Ardoetia - 02-22-2012 (02-22-2012, 06:15 PM)Unearthlybrutal Wrote: Timer's syntax is (string &in asTimer),What? void StopPlayerLook(string &in asTimer) { StopPlayerLookAt(); } void ResetPlayer(string &in asTimer) { SetPlayerActive(true); } void girlstopcry(string &in asTimer) { StopSound(asTimer, 1.0); } void girlcry_1(string &in asTimer) { PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false); } void girlcry_2(string &in asTimer) { PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false); } void girlcry_3(string &in asTimer) { PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false); } These are the only timers? void girlcry(string &in asParent, string &in asChild, int alState) { AddTimer("", 0, "girlcry_1"); AddTimer("", 3, "girlstopcry"); AddTimer("", 1, "ResetPlayer"); AddTimer("", 1.5, "SetPlayerActive"); StartPlayerLookAt("lyd_2", 2, 2, ""); SetPlayerActive(false); } void girlcry1(string &in asParent, string &in asChild, int alState) { AddTimer("", 0, "girlcry_2"); AddTimer("", 3, "girlstopcry"); SetPlayerActive(false); AddTimer("", 1, "ResetPlayer"); AddTimer("", 1.5, "SetPlayerActive"); StartPlayerLookAt("lyd_3", 2, 2, ""); } void girlcry2(string &in asParent, string &in asChild, int alState) { AddTimer("", 0, "girlcry_3"); AddTimer("", 3, "girlstopcry"); SetPlayerActive(false); AddTimer("", 1, "ResetPlayer"); AddTimer("", 1.5, "SetPlayerActive"); StartPlayerLookAt("lyd_4", 2, 2, ""); } Points to AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1); AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1); AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1); RE: Some wierd bug - Your Computer - 02-22-2012 Onstart != OnStart. RE: Some wierd bug - Ardoetia - 02-22-2012 Omg fucking embarressing, I hate my life. And I hate doing that mistake. RE: Some wierd bug - Ardoetia - 02-23-2012 What about the letter? Whats wrong there? RE: Some wierd bug - Your Computer - 02-23-2012 (02-23-2012, 01:29 AM)Ardoetia Wrote: What about the letter? I don't see anything wrong with the .lang file. Maybe you typed in FormerVictim instead of FomerVictim in the level editor. RE: Some wierd bug - Ardoetia - 02-23-2012 Thx, I havent really looked there, nice to get it done tho, thanks bro :] |