pathnode connection

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

pathnode connection

Post 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
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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?)
Admin .MAP Forums
Image
Head above heels.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post 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
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

noob question, what is a pathnode? is it for multiplayer, or some single player thing?
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post 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
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

o, i get it, cool. yo tropheus your nto from the us are you, where you from.
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post by Tropheus »

come from France.

Tropheus
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

cool, thanks for the fries and toast! hehe, american joke.........
Tropheus
Corporal
Posts: 49
Joined: Sun Sep 14, 2003 11:19 pm
Location: france
Contact:

Post by Tropheus »

You're wellcome cowboy.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

is that what the french call us? sweet, i like cowboys.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
Post Reply