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
GetEntityExists
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: GetEntityExists

You can't loop it like this into the same function, but you can loop it to a different function that has the timer that goes to this function again.

There also may be a problem with the music because you're stopping music and then playing some music nearly at the same time, but this is only a thought.

Try this for now:

void CheckMonster(string &in asTimer){
    if(GetEntityExists("grunt2") == false){
        StopMusic(0.5, 0);
        PlayMusic("01_amb_darkness", true, 100, 1.5, 0, true);
    }
    else{
        CheckMonsterAgain();
     }
}
void CheckMonsterAgain()
{
     AddTimer("", 0.1, "CheckMonster");
}

08-02-2011, 01:00 PM
Find


Messages In This Thread
GetEntityExists - by MrCookieh - 08-02-2011, 11:57 AM
RE: GetEntityExists - by Kyle - 08-02-2011, 01:00 PM
RE: GetEntityExists - by MrCookieh - 08-02-2011, 01:14 PM
RE: GetEntityExists - by Your Computer - 08-02-2011, 01:28 PM
RE: GetEntityExists - by Kyle - 08-02-2011, 01:30 PM
RE: GetEntityExists - by MrCookieh - 08-02-2011, 02:21 PM
RE: GetEntityExists - by DRedshot - 08-02-2011, 02:34 PM
RE: GetEntityExists - by MrCookieh - 08-02-2011, 02:39 PM
RE: GetEntityExists - by DRedshot - 08-02-2011, 02:44 PM



Users browsing this thread: 3 Guest(s)