Page 1 of 1
pathnode connection
Posted: Fri Dec 05, 2003 11:30 pm
by Tropheus
Hie everybody!
i'd just read the AI tips Tutorial and i find this sentence and i would like to have an explaination.
Have cover nodes target one or more other nodes if you want the AI to consistently pop out at a known location.
does it means that you can connect severals pathnode to one.
If one can be the targeted for several pathnode, but does one pathnode can have several pathnode for target ?
Thanks a lot for your answers.
Tropheus
Posted: Sat Dec 06, 2003 12:22 am
by Bjarne BZR
It will randomly select one of the targeted pathnodes to sep to when steping out of cover to attack. If you target no other pathnodes, the AI will step as directly towards the enemy as it can.
(Did I get that right?)
Posted: Sat Dec 06, 2003 9:54 am
by bdbodger
I think a pathnode can only target more than one node if all the other nodes have the same $targetname . I think so any way , the only exception I think is the vis leafgroups they can target more than one other vis leafgroup with different targetnames .
Posted: Sun Dec 07, 2003 8:55 pm
by Tropheus
Thanks for your answers Bjarne and bdbodger.
If i undersatnd well what you said bdbodger you can give the same tragetname to several pathnode? And that without bugg?
There are minimal or maximal distance between two pathnode?
Thanks
Tropheus
Posted: Sun Dec 07, 2003 10:27 pm
by omniscient
noob question, what is a pathnode? is it for multiplayer, or some single player thing?
Posted: Sun Dec 07, 2003 11:00 pm
by Tropheus
hie omniscient.
pathnode are for single player but can be used in multiplayer if you use bots in your map. it give instruction to bots for the movement the acts.
For the community. I have a trnslation problem
What meuns spam in this sentence.
Don?t spam the AI with movement commands.
thnks for your answers
Tropheus
Posted: Sun Dec 07, 2003 11:02 pm
by omniscient
o, i get it, cool. yo tropheus your nto from the us are you, where you from.
Posted: Sun Dec 07, 2003 11:14 pm
by Tropheus
come from France.
Tropheus
Posted: Sun Dec 07, 2003 11:16 pm
by omniscient
cool, thanks for the fries and toast! hehe, american joke.........
Posted: Sun Dec 07, 2003 11:19 pm
by Tropheus
You're wellcome cowboy.
Posted: Sun Dec 07, 2003 11:37 pm
by omniscient
is that what the french call us? sweet, i like cowboys.
Posted: Mon Dec 08, 2003 5:16 am
by bdbodger
You can give the same targetname to a lot of different things but in the script things might need to be changed a bit . When several things have the same targetname then they form a targetname array which starts it's indexing from 1 so after to refer to each one you have to do like this
if you make 3 ai's all with the $targetname $myguy then you get
$myguy[1]
$myguy[2]
$myguy[3]
iprintln $myguy.size will print 3 on the screen
but for pathnodes if you have pathnode 1 target pathnode 2 and pathnode 3 has the same targetname pathnode 1 will target both .