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
Question About Activating a monster when you walk in a Area
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#4
RE: Question About Activating a monster when you walk in a Area

(04-19-2012, 12:30 AM)Damascus Wrote: Most common way is to set the enemy in the Level Editor and set it to inactive. Then activate it with the following script:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""brute1activate""brute1activate"true1);
}

void brute1activate(string &in asParentstring &in asChildint alState
{
SetEntityActive("brute1"true); //true means active, false means inactive


SetNPCAwake is used for characters like Agrippa and Alexander.
Thanks for your helping it worked


04-19-2012, 02:47 PM
Find


Messages In This Thread
RE: Question About Activating a monster when you walk in a Area - by meneadeszz - 04-19-2012, 02:47 PM



Users browsing this thread: 2 Guest(s)