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
Patrol 2 enemy
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Patrol 2 enemy

What do you mean?
If you want the monster to follow a path and disappear, it's very simple.


void OnStart()
AddEntityCollideCallback("Player", "ScriptCollide", "Mons", true, 1);
AddEntityCollideCallback("Monster", "Erase area", "Disa", true, 1);

void Mons (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster", true);
AddEnemyPatrolNode("Monster", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_5", 0, ""); (Where the Erase area is set)
}

void Disa(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster", false);
}

If you want them to patrol, so they are always there, moving, I have a more complicated system.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-03-2012, 09:57 PM
Find


Messages In This Thread
Patrol 2 enemy - by nemero - 09-03-2012, 08:11 PM
RE: Patrol 2 enemy - by Steve - 09-03-2012, 08:29 PM
RE: Patrol 2 enemy - by The chaser - 09-03-2012, 09:57 PM
RE: Patrol 2 enemy - by nemero - 09-04-2012, 08:20 PM
RE: Patrol 2 enemy - by FlawlessHappiness - 09-04-2012, 08:25 PM



Users browsing this thread: 1 Guest(s)