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
Enemy waiting at each PathNodes
onv Offline
Member

Posts: 51
Threads: 12
Joined: Feb 2012
Reputation: 2
#11
RE: Enemy waiting at each PathNodes

I don't understand what you mean , do you want me to assign it to one path (like PathNodeArea_1 , or PathNodeArea ?)
I just want the monster to go though each point without stopping , if i assign it to one path he just goes there and stops . He doesn't go though all the points around .

Sorry for my stupidity.
02-11-2012, 10:06 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#12
RE: Enemy waiting at each PathNodes

Describe the path you want him to walk. Is it square path? Straight line?

There are ways you can keep a grunt moving on a path without stopping if it's a complicated path.

02-11-2012, 10:15 AM
Find
onv Offline
Member

Posts: 51
Threads: 12
Joined: Feb 2012
Reputation: 2
#13
RE: Enemy waiting at each PathNodes

I want the monster to go in straight line , and then re-go where he started walking , still in straight line.
Maybe my script can explain better my problem :



////////////////////////////
// Run when entering map
void OnStart()
{
SetEntityActive("monstre_1", false);
AddEntityCollideCallback("Player", "ScriptArea_1", "Armor", true, 1);
AddEntityCollideCallback("monstre_1", "ScriptArea_3", "stoppath", true, 0);
}

void Armor(string &in asParent, string &in asChild, int alState)
{
SetEntityActove("monstre_1" true);
SetEntityActive("corpse_male_1", true);
AddPlayerBodyForce(-90000, 6000, 0, false);
AddEnemyPatrolNode("monstre_1", roflpath_1, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_2, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_3, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_4, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_5, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_6, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_7, 0, "");
AddEnemyPatrolNode("monstre_1", roflpath_8, 0, "");
}

void stoppath(string &in asParent, string &in asChild, int alState)
{
SetEnemyDisableTriggers("monstre_1", false);
ClearEnemyPatrolNodes("monstre_1");
}

If i only put AddEnemyPatrolNode("monstre_1", roflpath_1, 0, ""); he go to first path , and stop walking.
If i put AddEnemyPatrolNode("monstre_1", roflpath, 0, ""); he dosen't move at all.


What should i do ?
(This post was last modified: 02-11-2012, 05:05 PM by onv.)
02-11-2012, 04:24 PM
Find
onv Offline
Member

Posts: 51
Threads: 12
Joined: Feb 2012
Reputation: 2
#14
RE: Enemy waiting at each PathNodes

Huh , i just tryed to put "roflpath_" , but didn't worked at all , any help ?

Sorry , i know i am getting annoying , but i really need help , i'd appreciate it Big Grin
02-11-2012, 06:33 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#15
RE: Enemy waiting at each PathNodes

Assign only the path node at the end of the path. Monsters pause at a path node they're assigned to, even if you tell them to wait for 0 seconds. So only assign it the destination node.

02-11-2012, 07:45 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#16
RE: Enemy waiting at each PathNodes

You can avoid having the monster wait if you follow what i said in post #3. It's the same thing i did for Amensia's Creed.

Tutorials: From Noob to Pro
02-11-2012, 07:51 PM
Website Find
onv Offline
Member

Posts: 51
Threads: 12
Joined: Feb 2012
Reputation: 2
#17
RE: Enemy waiting at each PathNodes

Ok , thanks everybody , for your precious help ! i'm gonna see if assigning the last path node (roflpath_8) is gonna help me.And if it don't , i'll put 0.001 , like Your Computer said Big Grin
(This post was last modified: 02-12-2012, 09:07 AM by onv.)
02-12-2012, 09:05 AM
Find




Users browsing this thread: 1 Guest(s)