Home   Help Search Login Register  

Author Topic: how to get ai to go capture enemy flags?!  (Read 1402 times)

0 Members and 1 Guest are viewing this topic.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
how to get ai to go capture enemy flags?!
« on: 10 Aug 2007, 23:44:00 »
Hi All!

Okay - I'm stuck....again  :D
I'm working on a misson....based on capture and hold... and I need a script that will do the following:
Lets say there are 10 flags across the battlefield, I want the ai to detect the closest enemy flag and head to that town to capture it.
Then move on to the next closest enemy flag and capture that etc.

I'm using the flag capture scripts from this resource:
http://www.ofpec.com/forum/index.php?topic=28858.0

So I have the capture flag part of the mission...just don't have a clue how to script the ai to find the right flags!
This was done in MFCTI but understanding how it was done is currently beyond my grasp!

If anyone could help - I'd really appreciate it :)
« Last Edit: 11 Aug 2007, 05:06:25 by D_P_ »
just setpos & forgetpos!