10-02-2012, 10:54 AM
Hi.
I have some ambient music playing and there's a grunt encounter a bit into the map and I don't want the grunt music to play.
void sanityscript1(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(35);
PlayMusic("29_amb.ogg", true, 2, 2, 0, true);
}
void wakeuptextscript1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "wakeuptext1", 5.5f);
StopMusic(5, 0);
}
Thanks in advance.
I have some ambient music playing and there's a grunt encounter a bit into the map and I don't want the grunt music to play.
void sanityscript1(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(35);
PlayMusic("29_amb.ogg", true, 2, 2, 0, true);
}
void wakeuptextscript1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "wakeuptext1", 5.5f);
StopMusic(5, 0);
}
Thanks in advance.