Description
Forces a unit to fire the given weapon.
Note
Just like with forceWeaponFire it is possible to pass remote unit as argument, but this could be unreliable. Considering this command might need to be used in combination with selectWeapon, which takes only local arguments, it would make sense to execute the fire command where the unit is local as well.
Syntax
Syntax 1
unit fire muzzle
Parameters:
Returns: Nothing
Syntax 2
unit fire [muzzle, mode, magazine]
Parameters:
Returns: Nothing
Examples
Example 1
_soldier fire "M16";
Example 2
_soldier fire "SmokeShellMuzzle";
Example 3
_soldier fire ["SmokeShellMuzzle", "SmokeShellMuzzle", "SmokeShellRed"];
Example 4
player playActionNow "PutDown";
player selectWeapon "DemoChargeMuzzle";
player fire ["DemoChargeMuzzle", "DemoChargeMuzzle", "DemoCharge_Remote_Mag"];
player setWeaponReloadingTime [player, "DemoChargeMuzzle", 0];
See also
BIS_fnc_fire · doFire · commandFire · canFire · fireAtTarget · forceWeaponFire · commandArtilleryFire · commandSuppressiveFire · doArtilleryFire · doSuppressiveFire · isManualFire · selectWeapon · ArmA: Actions