Jump to content
Sign in to follow this  
Krofton

Force small arms fire on armored targets?

Recommended Posts

I am currently creating a mission in which a Stryker team must reach a destination through Corazol with enemy infantry in ambush positions throughout the path. For an ambience effect I would like to have the rifle and machine gun troops fire at the Strykers (yes even though it wont do anything), not just the AT troops. Is there any way to implement this? Help would be MUCH appreciated as I am pretty much at a standstill because of this problem.

Share this post


Link to post
Share on other sites

The commandFire command might help you. It's used like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyPlayer commandFire Target

and can be executed via a trigger. You can set the trigger to be activated by radio alpha, bravo etc... or OPFOR/BLUFOR. This command forces the unit to fire regardless of type of target.

The problem with this is that you have to name all the units that are going to do the firing. That's not fun.  Also, the firing units must have a line-of-sight. Like this in the trigger:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">peeshooter commandFire Stryker1; peeshooter2 commandFire Stryker1;peeshooter3 commandFire Stryker1;peeshooter4 commandFire Stryker1;

Perhaps someone could post here with a group = my_group_name way of adding all the units in a squad, then using the commandFire command to fire on the target.

Share this post


Link to post
Share on other sites

How about grouping the shooters and then commanding the group to conduct fire at the give target? Takes two short scripts instead of tens.

Share this post


Link to post
Share on other sites
How about grouping the shooters and then commanding the group to conduct fire at the give target? Takes two short scripts instead of tens.

That's a good idea however, as I am completely new to scripting, I am unsure whether the commandFire action would work when you designate a "group" rather than an "object."

Try it out, post some code for creating the group and then what you'd put in the trigger? wink_o.gif

pistols.gif

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  

×