Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie needs help! [SOLVED]
pwnvader360 Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jan 2011
Reputation: 0
#10
RE: Newbie needs help!

(01-12-2011, 06:52 PM)Seragath Wrote: I haven't used pathnode that much but from what I know is that it's possible. for example

void Monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("NAME OF YOUR MONSTER" , true);
AddEnemyPatrolNode("NAME OF YOUR MONSTER", "NAME OF YOUR PATHNODE", 0, "");
AddEnemyPatrolNode("NAME OF YOUR MONSTER", "NAME OF YOUR PATHNODE2", 0, "");
AddEnemyPatrolNode("NAME OF YOUR MONSTER", "NAME OF YOUR PATHNODE3", 0, "");
}

etc etc

I tried that and nothing happened. Here's the code:
void OnStart()
     {
        AddEntityCollideCallback("Player", "ScriptArea_1", "Monster", true, 1);
     }
    
     void Monster(string &in asParent, string &in asChild, int alState)
        {
            SetEntityActive("servant_grunt_1", true);
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
            AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 0, "");
            SetEntityActive("servant_grunt_1", false);
        }

void OnEnter()
     {
        
     }

void OnLeave()
     {
        
     }

(01-12-2011, 07:45 PM)Tottel Wrote: This is on a custom map, right? One that you play as a custom story?

Yes it is. I named it Test Map.
Anyone help meh...?Sad
(This post was last modified: 01-12-2011, 08:12 PM by pwnvader360.)
01-12-2011, 07:45 PM
Find


Messages In This Thread
Newbie needs help! [SOLVED] - by pwnvader360 - 01-12-2011, 06:37 PM
RE: Newbie needs help! - by Tottel - 01-12-2011, 06:39 PM
RE: Newbie needs help! - by pwnvader360 - 01-12-2011, 06:45 PM
RE: Newbie needs help! - by Seragath - 01-12-2011, 06:45 PM
RE: Newbie needs help! - by pwnvader360 - 01-12-2011, 06:48 PM
RE: Newbie needs help! - by Tottel - 01-12-2011, 06:47 PM
RE: Newbie needs help! - by pwnvader360 - 01-12-2011, 07:26 PM
RE: Newbie needs help! - by Seragath - 01-12-2011, 06:52 PM
RE: Newbie needs help! - by pwnvader360 - 01-12-2011, 07:45 PM
RE: Newbie needs help! - by Tottel - 01-12-2011, 07:45 PM
RE: Newbie needs help! - by Seragath - 01-12-2011, 08:34 PM
RE: Newbie needs help! - by pwnvader360 - 01-13-2011, 12:14 AM
RE: Newbie needs help! - by Seragath - 01-13-2011, 01:08 PM
RE: Newbie needs help! - by pwnvader360 - 01-13-2011, 06:21 PM



Users browsing this thread: 4 Guest(s)