ACE3/addons/csw/functions/fnc_ai_handleFired.sqf
johnb432 56eae4060c
CSW - Improve function headers & comments (#10149)
Code formatting changes from 9234
2024-07-27 19:42:31 +02:00

24 lines
522 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: PabstMirror
* Handles AI Fired EH.
*
* Arguments:
* Fired EH
*
* Return Value:
* None
*
* Public: No
*/
params ["_vehicle", "_weapon", "", "", "", "_magazine", "", "_gunner"];
TRACE_4("firedEH:",_vehicle,_weapon,_magazine,_gunner);
if (someAmmo _vehicle) exitWith {};
if ((!local _gunner) || {[_gunner] call EFUNC(common,isPlayer)}) exitWith {};
TRACE_1("need ammo",magazinesAllTurrets _vehicle);
[_vehicle, _gunner, _weapon, _magazine] call FUNC(ai_reload);