CBA_fnc_turretPathWeapon

Description

Get the turret path belonging to a weapon of given vehicle.

Reverse version of the weaponsTurret scripting command.

Parameters

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

Example

_turretPath = [cameraOn, "HMG_127_mbt"] call CBA_fnc_turretPathWeapon

Returns

Weapons turret path.  [-1] for driver weapon.  [] when weapon not found.  ARRAY

Author

commy2

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