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
Help with script.
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: Help with script.

According to the wiki article you forgot to set up and declare the path nodes:

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("servant_grunt_1", true);
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
    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", 4, "");
}


Noob scripting tutorial: From Noob to Pro

04-22-2012, 04:56 PM
Find


Messages In This Thread
Help with script. - by mattman111 - 04-22-2012, 04:48 PM
RE: Help with script. - by Cranky Old Man - 04-22-2012, 04:56 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:08 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:13 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:19 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:39 PM



Users browsing this thread: 1 Guest(s)