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
[SOLVED] How to use areas to kill monsters/poof them?
Rokotain Offline
Member

Posts: 54
Threads: 9
Joined: Jul 2011
Reputation: 0
#7
RE: How to use areas to kill monsters/poof them?

What you could do is make and area and name it "Area_1" inside the closet and add this to the onStart thing:

AddEntityCollideCallback("Player", "Area_1", "MonsterDisappear")

then:

void MonsterDisappear(string &in asParent, string &in asChild, int alState)
{
AddTimer("TimerMonsterGone", 2);
}

void TimerMonsterGone(string &in asTimer)
{
SetEntityActive("Monster_1", false);
}


Now, to learn something from this. Read the article the other poster sendt you :] and study this script.
I'm sure your brain will make the logical connection.

Also I'm far from good myself, and I probably made some errors in the script ^ above, so please correct me if I'm wrong!

Hope it helped : p!
02-06-2012, 12:13 AM
Find


Messages In This Thread
RE: How to use areas to kill monsters/poof them? - by Rokotain - 02-06-2012, 12:13 AM



Users browsing this thread: 1 Guest(s)