Ok, disregard the last idea, I am now following this(to a certain extent)
http://www.youtube.com/watch?v=EhUjbK_vEhM
and i have this
void OnStart()
{
AddEntityCollideCallback("Player", "PianoStop", "PianoStop", true, 1);
PlaySoundAtEntity("", "general_piano04", "Piano", 0, false);
}
void PianoStop(string &in asParent, string &in asChild, int alState)
{
StopSound("general_piano04", 0);
}
It is suppose to make the piano sound stop playing when i come into near contact with the piano, but it doesnt stop...
Anything wrong with the script?