05-08-2011, 08:19 AM
Code:
void ScaryFootstepsCallback(string &in asParent, string &in asChild, int alState)
{
for(int s=1;s<7;s++) AddTimer("step"+s, 1.0 * s, "CreateFootstep");
}
void CreateFootstep(string &in asTimer)
{
PlaySoundAtEntity("scary"+asTimer, "scare_walk_ghost.snt", "Area_step_1", 0, false);
}
Ok so i finally got this working, but the problem is that the footstep noises seem to come from the player or really close by, even if i put them in another room completely.. is there a way for them to get further away sounding?
EDIT: I am also trying to get this sound to play as well with
Code:
if(asTimer == "Area_step_6")
{
PlaySoundAtEntity("", "scare_breath.ogg", "Player", 0, false);
}
but this seems to not activate at all