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
Looping a sound on an entity?
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
Looping a sound on an entity?

i tried this:
void OnEnter()
{
SoundPlay();
}

void SoundPlay()
{
void PlaySound2(string &in timer_name)
{
    SetEntityActive("sound_1", true);
    SetEntityActive("sound_2", false);
    AddTimer("", 2, "PlaySound3");
}

void PlaySound3(string &in timer_name)
{
    SetEntityActive("sound_2", true);
    SetEntityActive("sound_1", false);
    AddTimer("", 2, "PlaySound2");
}
}

but it doesn´t work :/ is there another way to loop a sound on an entity? or do you know why this doesnt work?

thanks ^^

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-26-2013, 08:05 PM
Find


Messages In This Thread
Looping a sound on an entity? - by tonitoni1998 - 02-26-2013, 08:05 PM



Users browsing this thread: 1 Guest(s)