ACE3/addons/common/functions/fnc_getTurretGunner.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
411 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2
* Get the turret index of a vehicles gunner.
*
* Arguments:
* 0: Vehicle <OBJECT>
*
* Return Value:
* Vehicle Gunner Turret indecies <ARRAY>
*
* Example:
* [car] call ace_common_fnc_getTurretGunner
*
* Public: Yes
*/
params [["_vehicle", objNull, [objNull]]];
fullCrew [_vehicle, "gunner", true] apply {_x select 3} param [0, []] // return