Krofton 0 Posted May 10, 2007 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
ArmaVidz 0 Posted May 18, 2007 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
Törni 0 Posted May 20, 2007 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
ArmaVidz 0 Posted May 21, 2007 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? Share this post Link to post Share on other sites