Posted by: SGJackson Jun 22 2010, 23:32
Hello all!
I've finished my artillery barrage, it's PERFECT and modest... modestly perfect..
I just need that 8 targets where the bomb's falling move randomly inside a trigger of 20/20
Here's my script:
CODE
#START
setfire=true;
titleText ["Click on the map to set your firedirection","plain down"];
onMapSingleClick "ASTarget setPos _pos; setfire=false";
@!setfire;
"Firedirection" setmarkerpos getPos ASTarget;
onMapSingleClick "";
titleText ["", "plain down"];
;=======CREATE=========================
~2
_bomb= "Bo_GBU12_LGB" createvehicle position ASTarget
~2
_bomb1= "Bo_GBU12_LGB" createvehicle position ASTarget1
~2
_bomb2= "Bo_GBU12_LGB" createvehicle position ASTarget2
~2
_bomb3= "Bo_GBU12_LGB" createvehicle position ASTarget3
~2
_bomb4= "Bo_GBU12_LGB" createvehicle position ASTarget4
~2
_bomb5= "Bo_GBU12_LGB" createvehicle position ASTarget5
~2
_bomb6= "Bo_GBU12_LGB" createvehicle position ASTarget6
~2
_bomb7= "Bo_GBU12_LGB" createvehicle position ASTarget7
~2
_bomb8= "Bo_GBU12_LGB" createvehicle position ASTarget8
trigg1 setpos getpos ASTarget
trigg1 setTriggerArea [20,20,11,false]
~3
trigg1 settriggerarea [0,0,0,false]
The trigger kills everything inside the area of explosion in case of bug to come in scene :S
now i need that those 8 targets that are already defined in the map, move inside the trigger in random positions...
Actually doesn't need to be random... i just wanna get this done!
If you set a pos for each one of them and they'll always spwn in the same pos doesn't matter... if you know that, just post it, that'll be good
Best Regards, SGJackson!