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
Sound not playing (Read if you want to have different times on looping sounds)
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#1
Sound not playing (Read if you want to have different times on looping sounds)

The sound is simply not playing.



void OnStart()
{
AddEntityCollideCallback("Player", "EnterWindOnArea", "FuncWindy", true, 1);
}

void FuncWindy(string &in asParent, string &in asChild, int alState)
{
if(asChild == "EnterWindOnArea") {
float fWind = RandFloat(0.5f,6.5f);

AddTimer("wind", 2.5f+fWind, "WindTimer");

AddEntityCollideCallback("Player", "EnterWindOffArea", "FuncWindy", true, 1);

} else {
RemoveTimer("wind");

AddEntityCollideCallback("Player", "EnterWindOnArea", "FuncWindy", true, 1);
}

}

void WindTimer(string &in asTimer)
{
int iWind = RandFloat(1, 7);
float fWind = RandFloat(4.5f,14.5f);

PlaySoundAtEntity("WindSound"+iWind, "general_wind_blow.snt", "WindSound_"+iWind, 0.0f, false);

AddTimer("wind", 5.5f+fWind, "WindTimer");

}

"What you think is irrelevant" - A character of our time

A Christmas Hunt
(This post was last modified: 05-22-2012, 06:38 PM by i3670.)
05-21-2012, 02:16 PM
Find


Messages In This Thread
Sound not playing (Read if you want to have different times on looping sounds) - by i3670 - 05-21-2012, 02:16 PM
RE: Sound not playing - by Stepper321 - 05-21-2012, 03:26 PM
RE: Sound not playing - by Putmalk - 05-21-2012, 03:44 PM
RE: Sound not playing - by Datguy5 - 05-21-2012, 03:48 PM
RE: Sound not playing - by Putmalk - 05-21-2012, 03:52 PM
RE: Sound not playing - by Datguy5 - 05-21-2012, 04:48 PM
RE: Sound not playing - by Stepper321 - 05-21-2012, 06:24 PM
RE: Sound not playing - by i3670 - 05-21-2012, 04:11 PM
RE: Sound not playing - by i3670 - 05-21-2012, 06:58 PM
RE: Sound not playing - by i3670 - 05-22-2012, 03:44 PM



Users browsing this thread: 1 Guest(s)