TheRedBaron 0 Posted May 15, 2004 well I know that the coc missles have just been relesed but I am going to try something and need a little help. I was going to use the UAV from the FDF mod and cam create laser guided bombs on the position of the UAV when it crashed. Im new to scripting but know some basic things( I always manage to screw up ) anyways how would it do this with a script? Share this post Link to post Share on other sites
TheRedBaron 0 Posted May 15, 2004 Never mind figured it out. Its fun if you want to try. Name your uav or plane "uav",in your init line put [uav] exec "uav.sqs" without " ", create a trigger over the aproximate area you want to hit. Make the trigger activated by the uav and in  On Activation: [uav] exec "pre.sqs" put these in your mission folder <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;uav missle by TheRedBaron ;uav.sqs ;creates uav explosion _uav = _this select 0 _uav setbehaviour "careless" _uav flyinheight 5 #loop ?(damage _uav)> .7: goto "fire" ~3 goto "loop" #fire uav setdammage 1 ~8 "laserguidedbomb" camcreate [getpos _uav select 0,getpos _uav select 1,+.5] ~.1 ;removes the uav deletevehicle _uav exit <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;pre.sqs ;this prepares the uav(this may not be needed but it works) _uav = _this select 0 _uav flyinheight 1 ~3 _uav setdammage .9 exit set a waypoint for you flying uav or plane to go through the trigger and it should fall out of the sky and explode near the ground. Have fun Share this post Link to post Share on other sites