[SOLVED] RemoveTimer doesn't work - 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: [SOLVED] RemoveTimer doesn't work (/thread-15532.html) Pages:
1
2
|
RE: RemoveTimer doesn't work - FlawlessHappiness - 05-24-2012 Im sorry, but i actually edited my post, saying that it didn't work... I will try again.. EDIT: And actually now it works.. I had the script: void cry_1_timer(string &in asTimer) { PlaySoundAtEntity("12_girl_cry", "12_girl_cry", "mansion_5", 0.5f, false); AddTimer("girl_cry", 30, "cry_1_timer"); } Which makes the girl gry repeatly But then i noticed that in my void OnStart() There was this line: AddTimer("", 30, "cry_1_timer"); Which didn't have a name. Renamed it to "girl_cry" and now it works... Thanks! And sorry for being stupid |