ACE3/addons/csw/functions/fnc_ai_handleGetIn.sqf

22 lines
430 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: LinkIsGrim
2023-12-18 16:47:01 +00:00
* Handles AI GetIn on an empty CSW.
*
* Arguments:
* GetIn EH
*
* Return Value:
* None
*
* Public: No
*/
2023-12-18 16:47:01 +00:00
2023-07-13 10:20:21 +00:00
params ["_vehicle", "_role", "_gunner", "_turret"];
TRACE_3("getInEH:",_vehicle,_role,_gunner);
if ((!local _gunner) || {[_gunner] call EFUNC(common,isPlayer)}) exitWith {};
2023-07-13 10:20:21 +00:00
if (someAmmo _vehicle) exitWith {};
2023-07-13 21:37:27 +00:00
[_vehicle, _gunner] call FUNC(ai_reload);