Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: how to get ai to go capture enemy flags?!  (Read 2255 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!