Piano Scare-script - 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: Piano Scare-script (/thread-10851.html) |
Piano Scare-script - Wickedwrath - 10-19-2011 Hello! I'm about new with Scripting, and wonder if there is possible by any chance to use the "Piano Scare-script" from the level "Archives" for example, or how to make one? As I said, I'm about new with Scripting, and have read on how stuffs works carefully on http://wiki.frictionalgames.com/hpl2/amnesia/script_functions. But I'm not sure how to do it, so if someone could help me out, I woul'd appreciate it! RE: Piano Scare-script - Elven - 10-19-2011 For start you should watch my tutorial basics of the basic, maybe it gives u good scripting understanding. RE: Piano Scare-script - flamez3 - 10-20-2011 I'm not exactly sure what you mean "Piano scare" Im guessing it just makes a noise, so i would do this: void OnStart() { AddEntityCollideCallback("Player" , "ScriptArea_1" , "PianoScare" , true , 1); } void PianoScare(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "Piano sound, use with quotations aswell", "Player", 0.5f, false); } RE: Piano Scare-script - Elven - 10-20-2011 I made already tutorial about it and he got help from there http://www.youtube.com/watch?v=EhUjbK_vEhM RE: Piano Scare-script - flamez3 - 10-20-2011 (10-20-2011, 12:19 PM)Elven Wrote: I made already tutorial about it and he got help from thereOh ok lol, he didn't respond so i was just helping RE: Piano Scare-script - Elven - 10-20-2011 No problem . Helping is always good. I just let others know that there is solution to it . |