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

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#3
RE: Question About Activating a monster when you walk in a Area

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.

(This post was last modified: 04-19-2012, 12:30 AM by Damascus.)
04-19-2012, 12:30 AM
Find


Messages In This Thread
RE: Question About Activating a monster when you walk in a Area - by Damascus - 04-19-2012, 12:30 AM



Users browsing this thread: 1 Guest(s)