Jump to content
Sign in to follow this  
stanhead

Ai fire on armoured?

Recommended Posts

How can I make the AI fire on armoured units (like a BMP)? Like for covering fire etc. rock.gif

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×