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
Manually Stopping Monster Music?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#10
RE: Manually Stopping Monster Music?

Try this looping timer.

bool bMonsterActive = false;

void MonsterStuff(blahblah blahblah)
{
    SetEntityActive("grunty", true);
    PlayMusic("gruntymusic.ogg", true, 1, 0, 0, true);
    bMonsterActive = true;
    AddTimer("", 5, "MonsterCheck");
}

void MonsterCheck(string &in timer)
{
    bMonsterActive = GetEntityExists("grunty") ? true : false;
    if(!bMonsterActive) PlayMusic("newmusic.ogg", true, 1, 0, 0, 0, true);
    AddTimer("", 5, "MonsterCheck");
}

(This post was last modified: 08-17-2011, 10:57 PM by palistov.)
08-17-2011, 10:52 PM
Find


Messages In This Thread
Manually Stopping Monster Music? - by Tanshaydar - 08-17-2011, 02:24 PM
RE: Manually Stopping Monster Music? - by MrBigzy - 08-17-2011, 09:57 PM
RE: Manually Stopping Monster Music? - by palistov - 08-17-2011, 10:52 PM



Users browsing this thread: 1 Guest(s)