CBA_fnc_getFirer

Description

A function used to find out which unit exactly fired.

Replacement for gunner, on multi-turret vehicles.

Parameters

_vehiclea vehicle with turrets <OBJECT>
_weapona weapon in the vehicles turret STRING

Example

_turretPath = [cameraOn, "HMG_127_mbt"] call CBA_fnc_getFirer

Returns

ARRAY Firer of the weapon. objNull if the weapon does not exist on the vehicle <OBJECT> Turret path of the firer.  [] if firer is not in a turret ARRAY

Author

Rocko, commy2

string used by format
Array to read from [Array]
Close