Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
Reply to this topicStart new topic
> Artillery targets move randomly inside a trigger area?, I've got everything right, the bombs, the targets... just need thi
post Jun 22 2010, 23:32
Post #1


Group: Members
Posts: 131
Joined: 22-May 10
Member No.: 7,651

Hello all!

I've finished my artillery barrage, it's PERFECT and modest... modestly perfect.. biggrin.gif

I just need that 8 targets where the bomb's falling move randomly inside a trigger of 20/20

Here's my script:
titleText ["Click on the map to set your firedirection","plain down"];
onMapSingleClick "ASTarget setPos _pos; setfire=false";
"Firedirection" setmarkerpos getPos ASTarget;
onMapSingleClick "";
titleText ["", "plain down"];
_bomb= "Bo_GBU12_LGB" createvehicle position ASTarget
_bomb1= "Bo_GBU12_LGB" createvehicle position ASTarget1
_bomb2= "Bo_GBU12_LGB" createvehicle position ASTarget2
_bomb3= "Bo_GBU12_LGB" createvehicle position ASTarget3
_bomb4= "Bo_GBU12_LGB" createvehicle position ASTarget4
_bomb5= "Bo_GBU12_LGB" createvehicle position ASTarget5
_bomb6= "Bo_GBU12_LGB" createvehicle position ASTarget6
_bomb7= "Bo_GBU12_LGB" createvehicle position ASTarget7
_bomb8= "Bo_GBU12_LGB" createvehicle position ASTarget8
trigg1 setpos getpos ASTarget
trigg1 setTriggerArea [20,20,11,false]
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 wink.gif

Best Regards, SGJackson!

This post has been edited by SGJackson: Jun 22 2010, 23:39
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:


Lo-Fi Version Time is now: 10th December 2019 - 09:10