PDA

View Full Version : Force small arms fire on armored targets?



Krofton
May 10 2007, 03:06
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.

ArmaVidz
May 18 2007, 18:28
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[/QUOTE]

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&#39;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;[/QUOTE]

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.

Törni
May 20 2007, 09:02
How about grouping the shooters and then commanding the group to conduct fire at the give target? Takes two short scripts instead of tens.

ArmaVidz
May 21 2007, 03:59
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&#39;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&#39;d put in the trigger? http://forums.bistudio.com/oldsmileys/wink_o.gif

http://forums.bistudio.com/oldsmileys/pistols.gif