AI actors walking true each other...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Mister Newbie :o)

AI actors walking true each other...

Post by Mister Newbie :o) »

Hello,
Again a newbie in the forum...

Here is what happens and what i did so far:
- I made a map and the script entirely like mentioned in the tutorail "AI patrol waypoints"
- I deleted the trigger, and added "walkto path1" in the soldiers AI. He will start patroling from the start, not from the trigger. So far so good...
- I added another soldier, with targetname "badguyB", the other was "badguyA".
- I changed the map objectives that you have to kill both guards.
- Added "walkto path2" for second soldier. As you see, both soldiers follow the same guard-line, from path1 to path2 and back.

All this works great but:
As soon as both soldiers cross each other, they walk right true each other.
I added "interval 20" in each soldiers AI, but that doesn't do the trick...

Anyone any ideas?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Setting an interval only works when the AIs are in attack mode, i.e. handled by 'anim/attack.scr'. No other animation handlers have interval code included.

So you'll have to script the AI so that they won't meet each other.
Image
Colli
Corporal
Posts: 27
Joined: Sat Jan 04, 2003 11:27 pm
Location: Belgium
Contact:

Post by Colli »

I'm registered now 8)

Since both soldiers are in "guard" mode, interval doesn't work...
How did you find out?

Now, how do i script that AI?

Or is the best way adding 2 new waypoints for soldier 2?
This is ofcourse easier for me to design...

Thanks anyway!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think different patrol routes is the best way to go.
Image
Post Reply