Greetings to anyone that has bothered to read my request!
I am trying to get an AI unit to place mines in an area defined by
onsingleMapclick, rearm at an ammo crate and place more mines until the crate is empty.
All that I have been able to accomplish on my own was to get the unit to place a single mine and nothing more!
Basically, either by hardcoding into the script (global variable e.g. sapper1) or by an element of an array (local variable e.g. _sapper = _this select 1), define an AI unit to place as many mines as he currently carries at/near/around an area determined by an "onsingleMapclick", rearm at an ammocrate (again either by local or global variable), and then place more mines in the same general area until there are no more mines available.
I would have posted the script that I made, but as it does not work properly I would like to see if someone takes a different approach to the problem without being distracted by my failed attempt! ;D
BTW, I am aware that this concept is already ingame
if you are the commander of the group, but I wanted this to work if I am not the leader of the group or if I wanted to have a unit from another group do the dirty work.
As if I were not asking enough already, the script should be MP compatible.
Any takers?
Wadmann