Here is code considering sounds:
void CollidePianoArea(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SoundPiano", true);
AddTimer("", 45.0f, "EndPiano");
}
void EndPiano(string &in asTimer)
{
SetEntityActive("SoundPiano", false);
}
And this is in void OnStart:
AddEntityCollideCallback("Player", "PianoArea", "CollidePianoArea", true, 1);
However it does not trigger when it should but instead it plays the sound right in the beginning. Also I have other similiar sound and it does the same.
Plus I have simple shelf that is set to inactive,(as all those sounds) but yet it is active right in the start of the map...
Edit: But few other entities are inactive as they should :S