The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Brute Path Nodes
JohnandSerena Offline
Junior Member

Posts: 11
Threads: 4
Joined: Dec 2012
Reputation: 1
#1
Brute Path Nodes

I'm not sure of the problem but my brute has path nodes set and in MapView it doesn't show that the nodes are linked. When I approach the scene in the game, the brute goes nuts and it almost looks like its lagging. The brute stays in place and will do multiple animations and sometimes start to float. Here's my script:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "MonsterFunction", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 3, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_12", 0, "");
for (int i = 1; i < 13; i++)
{
AddEnemyPatrolNode("servant_brute_1","PathNodeArea_"+i, 0, "");
}
}

void OnLeave()
{
}
04-28-2013, 02:38 PM
Find


Messages In This Thread
Brute Path Nodes - by JohnandSerena - 04-28-2013, 02:38 PM
RE: Brute Path Nodes - by The chaser - 04-28-2013, 02:48 PM
RE: Brute Path Nodes - by JohnandSerena - 04-28-2013, 06:39 PM
RE: Brute Path Nodes - by Tomato Cat - 04-28-2013, 02:54 PM
RE: Brute Path Nodes - by Tomato Cat - 04-28-2013, 07:35 PM
RE: Brute Path Nodes - by JohnandSerena - 04-28-2013, 08:59 PM
RE: Brute Path Nodes - by Tomato Cat - 04-28-2013, 09:26 PM
RE: Brute Path Nodes - by The chaser - 04-28-2013, 09:46 PM



Users browsing this thread: 1 Guest(s)