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
GetEntityExists
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#1
GetEntityExists

Hey Guys!

So I tried some things out, lately, but somehow it doesn't work.

I want to check, if a grunt disappears, with this line of code:

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

so, is there any other error, or can't I use this GetEntityExists() for a disappeared grunt?

The Well: Descent - Take a look at it!
08-02-2011, 11:57 AM
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: 1 Guest(s)