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
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: Running an action when hallucination disappears

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);
     }
}

Put
//Add this to the part where you make your monster active
AddTimer("", 1.0f, MonsterDisappear);
Something like that. Try it out. Wink

10-20-2010, 06:16 PM
Find


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



Users browsing this thread: 1 Guest(s)