ACE3/addons/csw/functions/fnc_ai_handleGetIn.sqf
2023-12-18 17:47:01 +01:00

22 lines
430 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: LinkIsGrim
* Handles AI GetIn on an empty CSW.
*
* Arguments:
* GetIn EH
*
* Return Value:
* None
*
* Public: No
*/
params ["_vehicle", "_role", "_gunner", "_turret"];
TRACE_3("getInEH:",_vehicle,_role,_gunner);
if ((!local _gunner) || {[_gunner] call EFUNC(common,isPlayer)}) exitWith {};
if (someAmmo _vehicle) exitWith {};
[_vehicle, _gunner] call FUNC(ai_reload);