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!
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);
}
No problem
. Helping is always good. I just let others know that there is solution to it
.