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
Suitor doesn't follow the path nodes !
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#1
Suitor doesn't follow the path nodes !

Hi
I've got a problem with an Suitor. He should follow some path nodes but he doesn't do it -.-
What I've done wrong?

My Map: http://www.gamefront.com/files/21917310/Church.map

My Script:



void Monster(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 1, "Monsta");
}


void Monsta(string &in asTimer)
{
SetPropHealth("castle_2", 0.0f);
AddEntityCollideCallback("Player", "ScriptArea_33", "Hide", false, 1);
AddEntityCollideCallback("Player", "ScriptArea_32", "Hide", false, 1);
SetLocalVarInt("Var02", 0);
SetEntityActive("enemy_suitor_2", true);
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_14", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_15", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_16", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_17", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_19", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_20", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_21", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_23", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_24", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_25", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_26", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_28", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_30", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_32", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("enemy_suitor_2", "PathNodeArea_35", 0, "");
}

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


06-29-2012, 12:29 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Suitor doesn't follow the path nodes !

Is there nothing else? no callback for the "Monster" function?
06-29-2012, 12:35 PM
Find
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#3
RE: Suitor doesn't follow the path nodes !

There is a Callback for the function, the script I#ve posted isn't the whole script. And the Callback works because
"Set Prop Health" works

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


06-29-2012, 01:03 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#4
RE: Suitor doesn't follow the path nodes !

Make sure the suitor is really called enemy_suitor_2, and that you added pathnodes in the level editor and that they match the name.
06-29-2012, 01:06 PM
Find
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#5
RE: Suitor doesn't follow the path nodes !

Ich checked it already 5 times, I think the name isn't the problem

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


06-29-2012, 01:30 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#6
RE: Suitor doesn't follow the path nodes !

No idea then.
06-29-2012, 01:50 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Suitor doesn't follow the path nodes !

Provide the entire backtrace. Also, does the hpl.log provide any insight?

Tutorials: From Noob to Pro
06-29-2012, 02:01 PM
Website Find




Users browsing this thread: 2 Guest(s)