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
Running an action when hallucination disappears
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#3
RE: Running an action when hallucination disappears

(10-20-2010, 06:16 PM)Pandemoneus Wrote: I took a quick look at the script functions and I'd try using
GetEntityExists(string& asName);

I'd probably do
void MonsterDisappear(string &in asTimer) {
     if(GetEntityExists("Grunt") == false) {
           //do stuff
     }
     else {
           AddTimer("", 0.1f, MonsterDisappear);
     }
}

Something like that. Try it out. Wink

Wouldn't that only work if the entity Grunt exists from the beginning?
I have the feeling it would also trigger BEFORE the enemy is spawned..


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
10-20-2010, 06:37 PM
Find


Messages In This Thread
RE: Running an action when hallucination disappears - by Frontcannon - 10-20-2010, 06:37 PM



Users browsing this thread: 1 Guest(s)