stanhead 0 Posted March 20, 2004 How can I make the AI fire on armoured units (like a BMP)? Like for covering fire etc. Share this post Link to post Share on other sites
somebloke 0 Posted March 20, 2004 What you mean using machine guns etc or rocket launchers? Share this post Link to post Share on other sites
stanhead 0 Posted March 20, 2004 No, with like an M16. Share this post Link to post Share on other sites
somebloke 0 Posted March 20, 2004 nane the armoured vehicle something like A1, then in the init line of any m16 wielding solider, this dofire A1 Share this post Link to post Share on other sites
MrZig 0 Posted March 21, 2004 Or use a simple script, EG <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _man = _this select 0 _shell = _this select 1 _Target = _this select 2 _r2 = random 2 #loop _man reveal _Target _man dotarget _Target _man fire _shell ~random 1 ?END : goto "skip" goto "loop" #skip ?(_R2 <=1) : _cont = true ?(_R2 >1) : _cont = false ?_cont : goto "continue" exit #continue _R = random 400 ?(R <=2): exit _man fire _shell _man dotarget _target ~random 1 goto "continue" I used something along those lines for my "immersive" c130 drop, exec like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[man, "m16", BMP] exec "fire.sqs" Share this post Link to post Share on other sites
MrZig 0 Posted March 21, 2004 Hmm I guess with the "fire" command, the unit aims straight up, so that kinda sucks, what you COULD do, is put an invisible target on the bmp, say an east infantry, and loop it to setpos it at the bmp, so they fire at it. Share this post Link to post Share on other sites