hi all guys !
for optimization purposes, i'm trying to create a trigger that spawn/despawn mines based on distance.
i already got it working for one mine here it is :
a simple trigger 50x50
activating condition : "anybody " "present"
on activation: hint "mine created at flag";mi2 = createMine ["APERSBoundingMine", position flag1, [], 0];
on deactivation: deleteVehicle mi2;hint "mine at flag deleted";
it works perfectly (it generate a specified type of mine at the location of the trigger if anyone gets in its range, and delete it when noone is there)....but i need to do this for a minefield, lets say 50 mines randomly (or not randomly, its ok too) placed in the trigger area.
i'm sorry to bore you guys, but really have no idea how do this !
really thanks for any help !