Jump to content
Sign in to follow this  
Qapla74656

Units holding back to provide covering fire

Recommended Posts

Okay, I'm not much of a scripter, but if you want one (or more) units to drop out of formation and provide covering fire use the following script (which can be altered to suit personal tastes, etc), along with triggers.

_coverunit = _this select 0

[_coverunit] join grpnull

_coverunit setbehaviour "aware"

_coverunit setunitpos "down"

#loop

~1

?(player distance _coverunit >100):goto "rejoin"

goto "loop"

#rejoin

[_coverunit] join group player

_coverunit setunitpos "auto"

exit

I prefer to call the script from a radio trigger (so set the trigger to repeating and Radio Alpha for testing purposes), and in the On Activation field type:

[unitname] exec "cover.sqs" (or whatever you decide to call the script)

Then, in the game, when you activate radio alpha, the chosen unit will leave group and provide covering fire. In this instance, when the player is 100 metres away, the unit will then rejoin the group and do their best to catch up with you. Multiple triggers can be set to send multiple chosen individuals to cover you, or the script can be modified to send x number of your squad to almost certain death wink.gif.

Well, maybe this will help someone, it fit in with the needs of one of my own missions, so maybe somebody else was thinking along similar lines too.

Qapla.

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  

×