Frictional Games Forum (read-only)

Full Version: Piano Scare-script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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/amn..._functions. But I'm not sure how to do it, so if someone could help me out, I woul'd appreciate it! Rolleyes


For start you should watch my tutorial basics of the basic, maybe it gives u good scripting understanding.
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);
}
I made already tutorial about it and he got help from there Smile

http://www.youtube.com/watch?v=EhUjbK_vEhM
(10-20-2011, 12:19 PM)Elven Wrote: [ -> ]I made already tutorial about it and he got help from there Smile

http://www.youtube.com/watch?v=EhUjbK_vEhM
Oh ok lol, he didn't respond so i was just helping Smile
No problem Smile. Helping is always good. I just let others know that there is solution to it Smile.