OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 11 Sep 2004, 20:37:09
-
Hi, I'm making a tank mission & was wondering if its possible to have AI engineers disable a mine field?
My idea was that My M1A1's would run into a mine field & leader would call in support (A team of engineers). They would clear the mine field so we could move on to next obj.
Is there a script out there for this?....I haven't been able to find one...
Thanks.
-
Sorry i cant answer your question too well, I am makeing a similar mission where you have to clear a minefeild while under fire for tanks to pass through. im not sure the ai will just seek out mines and disable them but i think if you use the action command in a waypoint you may get them to disable one mine at the waypoint. in the on activation feild try unitname action ["deactivate mine",unitname] name the unit that you want to disable the mines and then fill that in where i put unitname. Im sure sombody knows more about than i do though.
-
another technique you can use, if the engineers are ai and not player controlled, is just to "cheat" the clearing.
I am assuming you can create and call the engineer team, so to the minefield:
move them there...
when they arrive activate a countdown, say 2 or 3 mins
after the countdown, deletevehicle the mines, viola! no minefield
bad part, you have to name the mines so they can be deletevehicle
not really realistic, but should be efficient
good part..much less scripting.
I have discovered that ai engineers can be ordered to deactivate a mine by a player groupleader if they are standing really close to it.....
does this help?
-
In Sui's Facile Ground you have to deactivate a minefield in exactly the same way as you described. Take a look there ;)
:cheers:
Tomasz