OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: calm_terror on 27 Sep 2003, 19:43:00

Title: Mine Clearing
Post by: calm_terror on 27 Sep 2003, 19:43:00
How can I get an AI to autoDisable and clear a Mine field?
Title: Re:Mine Clearing
Post by: Kaliyuga on 27 Sep 2003, 21:35:30
take a look at this thread:

starting with the sixth post down on the page ;)
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9376;start=30
Title: Re:Mine Clearing
Post by: calm_terror on 28 Sep 2003, 12:52:39
does not help me cuz I need to remove preplaced mine field.
Title: Re:Mine Clearing
Post by: Kaliyuga on 28 Sep 2003, 17:22:31
 
Quote
AFAIK you can't have soldiers pick up pre-placed mines (mines placed in the editor) because you need the person who laid the mine down

 Then I would suggest naming your mines and making some script that makes your AI "engineers"  walk to them.. and then the mines are setpositioned to some other spot on the island.

 That would be about the only way to do this that I can see based on your wanting to use pre-placed mines from the editor
Title: Re:Mine Clearing
Post by: calm_terror on 28 Sep 2003, 21:41:09
well crap. cuz i don't need him to pick them up just to disarm them..
Title: Re:Mine Clearing
Post by: Kaliyuga on 28 Sep 2003, 21:44:39
 you can still try what Sui  had to say in that thread to see if it works for you:



Quote
Just note that the syntax:

unit action ["DEACTIVATE MINE"]

Will work provided the unit is at the position of the mine.

Something else to note... engineers can deactivate and take any mines they like... probably because they're engineers

Everyone else can only muck about with mines they've places themselves
Quote