Random sound at random time script 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: Random sound at random time script help (/thread-11713.html) |
Random sound at random time script help - Gamemakingdude - 12-06-2011 PHP Code: void OnStart() I get signature matching errors at the AddTimer parts. If there's an simplier way then please go ahead and suggest. RE: Random sound at random time script help - Your Computer - 12-06-2011 You have Addtimer in a lot of places where AddTimer should be. Here's a more efficient way of doing what you want, though (code not tested): PHP Code: const string[] sounds_to_play = { RE: Random sound at random time script help - Gamemakingdude - 12-06-2011 Hi, i have tried this code and i get this error on line 9 it says its missing and ; or ,. RE: Random sound at random time script help - Your Computer - 12-06-2011 (12-06-2011, 08:55 AM)Gamemakingdude Wrote: Hi, i have tried this code and i get this error on line 9 it says its missing and ; or ,. Whoops, yeah, the string declaration at the top i forgot to put a ; at the end of it. I have fixed the error in my previous post. RE: Random sound at random time script help - Gamemakingdude - 12-06-2011 Ok now im getting this no matching signatures to the addtimer on line 12. in the OnStart() RE: Random sound at random time script help - jens - 12-06-2011 change Addtimer to AddTimer on line 12 (that is make the t a capital T). |