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
Cant get this function to work (sound)
Fralexxelarf Offline
Junior Member

Posts: 24
Threads: 5
Joined: Jan 2012
Reputation: 0
#3
RE: Cant get this function to work (sound)

yep, and i have no music in the background, this works though, after entering an area;
Quote: PlaySoundAtEntity("", "12_girl_scream.snt", "Player", 0, false);
but if i replace it with 21_scream7 in my
Quote:PlaySoundAtEntity("", "21_scream7.snt", "Player", 0, false);
it still doesnt sound when i pick up the key, is there something wrong with
Quote:void Scary_3_1(string &in entity)?


here's an other sound script, the function works but the sound wont play;
Quote:
void OnStart()
{
AddEntityCollideCallback("Player", "Scary_Area_1", "Scary_1", true, 1);

}

void Scary_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Scary_1", "lurker_hit_wood1.snt", "player", 0, false);
AddPropImpulse("armour_nice_complete_1", 0, 0, 2, "world");

}

nevermind, the snt's were corrupt
(This post was last modified: 01-03-2012, 04:40 PM by Fralexxelarf.)
01-03-2012, 04:05 PM
Find


Messages In This Thread
RE: Cant get this function to work (sound) - by Fralexxelarf - 01-03-2012, 04:05 PM



Users browsing this thread: 1 Guest(s)