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
Level Editor Help Monster Path Help
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#12
RE: Monster Path Help

You already have two areas encompassing each room, so let's divide the path nodes into two groups, red and blue (purple is where they both include the same path nodes). Look at this image:

[Image: pic3ms.th.jpg]

In the collide callback, you check for what area the player collided with and add path nodes to the monster for that area. For example,

PHP Code: (Select All)
void EnteredEnemyTriggerArea(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("servant_grunt_1"true);
    
    if (
asChild == "name_of_area_on_the_left")
    {
        
// add the circled path nodes in the red box
    
}

    else if (
asChild == "name_of_area_on_the_right")
    {
        
// add the circled path nodes in the blue box
    
}


Tutorials: From Noob to Pro
01-06-2012, 09:52 PM
Website Find


Messages In This Thread
Monster Path Help - by eagledude4 - 01-02-2012, 03:50 AM
RE: Scripting a Monster chase - by Linus Ågren - 01-02-2012, 04:07 AM
RE: Scripting a Monster chase - by eagledude4 - 01-02-2012, 04:27 AM
RE: Scripting a Monster chase - by eagledude4 - 01-02-2012, 05:36 AM
RE: Scripting a Monster chase - by eagledude4 - 01-03-2012, 12:33 AM
RE: Scripting a Monster chase - by Your Computer - 01-03-2012, 09:40 PM
Solved - Please remove - by eagledude4 - 01-05-2012, 12:29 AM
RE: Monster Path Help - by Your Computer - 01-05-2012, 07:09 AM
RE: Monster Path Help - by eagledude4 - 01-05-2012, 06:06 PM
RE: Monster Path Help - by Your Computer - 01-05-2012, 09:49 PM
RE: Monster Path Help - by eagledude4 - 01-06-2012, 02:04 AM
RE: Monster Path Help - by Your Computer - 01-06-2012, 09:52 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:17 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 10:19 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:22 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 10:26 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:30 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 10:41 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:42 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 10:45 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:48 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 10:52 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 10:53 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 11:11 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 11:13 PM
RE: Monster Path Help - by Statyk - 01-11-2012, 11:17 PM
RE: Monster Path Help - by eagledude4 - 01-11-2012, 11:20 PM
RE: Monster Path Help - by eagledude4 - 01-16-2012, 11:29 PM
RE: Monster Path Help - by Statyk - 01-17-2012, 12:00 AM
RE: Monster Path Help - by eagledude4 - 01-17-2012, 12:25 AM
RE: Monster Path Help - by Statyk - 01-17-2012, 02:27 AM
RE: Monster Path Help - by eagledude4 - 01-17-2012, 03:03 AM
RE: Monster Path Help - by Statyk - 01-17-2012, 04:13 AM



Users browsing this thread: 8 Guest(s)