The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Footsteps problem
Ge15t Offline
Junior Member

Posts: 48
Threads: 8
Joined: Feb 2011
Reputation: 0
#1
Footsteps problem

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
if(asTimer == "Area_step_6")
    {
    PlaySoundAtEntity("", "scare_breath.ogg", "Player", 0, false);
    }

but this seems to not activate at all
(This post was last modified: 05-08-2011, 08:34 AM by Ge15t.)
05-08-2011, 08:19 AM
Find


Messages In This Thread
Footsteps problem - by Ge15t - 05-08-2011, 08:19 AM
RE: Footsteps problem - by ferryadams10 - 05-08-2011, 09:39 AM
RE: Footsteps problem - by Ge15t - 05-08-2011, 10:09 AM



Users browsing this thread: 1 Guest(s)