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
Sound Question
Andross Offline
Junior Member

Posts: 38
Threads: 1
Joined: Oct 2010
Reputation: 0
#2
RE: Sound Question

You need a collision callback:

void OnStart()
{
    AddEntityCollideCallback("Player", "ScriptArea_2", "OnEnterArea2", true, 1);
}

void OnEnterArea2(string &in asParent, string &in asChild, int alState)
{
    PlaySoundAtEntity("running", "step_run_wood.snt", "PosNodeArea_1", 1.0f, false);
}
01-16-2011, 04:45 AM
Find


Messages In This Thread
Sound Question - by Devil Dogs SF - 01-16-2011, 04:15 AM
RE: Sound Question - by Andross - 01-16-2011, 04:45 AM



Users browsing this thread: 1 Guest(s)