How can i tell an AI to run to a pathnode with a specific targetname and a specific other field. (like #set)
Is it possible?
Check by other property?
Moderator: Moderators
Check by other property?
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
no, i know how to do that.
i mean this
is looking for a pathnode with
and a
so how do i check for the field as well as the $targetname?
i mean this
Code: Select all
$targetname/$AI Code: Select all
$targetname/$nodeCode: Select all
#field/specialModerator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
.
$AI moveto $node.field "special"
Er, something like that. The value of the #field property must be set in advance. If the value is a number, you don't need the quotes.
Er, something like that. The value of the #field property must be set in advance. If the value is a number, you don't need the quotes.
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Let's say you give all the nodes the same targetname.
Code: Select all
for (local.i = 1; local.i <= $node.size; local.i++)
{
if ($node[local.i].yourvalue == whatever)
break
}
$ai runto $node[local.i]

