06-06-2011, 11:43 AM
What's the code, when the player reaches a specific area the music stops.
I can't get the:
To work... :/
EDIT: This doesn't seems to work :O. any ideas?
I can't get the:
Code:
void StopMusic(float afFadeTime, int alPrio);
EDIT: This doesn't seems to work :O. any ideas?
Code:
void func_piano1_disapear(string &in asEntity, int alState)
{
StartPlayerLookAt("piano1_disapear", 10, 50, "");
AddTimer("", 0.5f, "TimerDestroyPiano1");
}
void TimerDestoryPiano1(string &in asTimer)
{
SetPropHealth("piano1_disapear", -100);
PlayMusic("05_event_steps.ogg", false, 80, 0, 10, false);
GiveSanityDamage(4.0f, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
AddTimer("", 1.0f, "TimerStopLook1");
}
void TimerStopLook1(string &in asTimer)
{
StopPlayerLookAt();
}