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