From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Makes a unit or a vehicle fire given muzzle. Make sure that there is some ammo to fire, and, in case of a unit, the weapon with given muzzle is already selected. It can be used to fire pretty much any muzzle on unit or vehicle from anywhere. Available weapons could usually be found with weapons, weaponsTurret and allTurrets commands.
- Execution:
- call
- Multiplayer:
- The function is global, it is not to be used in unit fields.
- Problems:
- unit will not fire its weapon from FFV position. This is due to forceWeaponFire command ignoring units in FFV.
- Groups:
- WeaponsObject ManipulationCombat
Syntax
- Syntax:
- [entity, muzzle, turret] call BIS_fnc_fire
- Parameters:
- entity: Object - unit or vehicle
- muzzle: String - muzzle name of the muzzle to fire
- turret: Array - (Optional) turret path of the turret with given muzzle (vehicles only)
- Return Value:
- Boolean - in SP and on hosted server in MP or Nothing on client in MP. When boolean, true if all checks have passed and muzzle should have fired, false if there was a problem, like:
- no ammo
- non-existing muzzle
- the muzzle is on a weapon that is not selected
- the weapon has no unit operating it
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
Additional Information
- See also:
- fire fireAtTarget forceWeaponFire
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note