mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
56eae4060c
Code formatting changes from 9234
24 lines
475 B
Plaintext
24 lines
475 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Handles AI Fired EH.
|
|
*
|
|
* Arguments:
|
|
* Fired EH
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_vehicle", "", "", "", "", "", "", "_gunner"];
|
|
TRACE_1("firedEH:",_this);
|
|
|
|
if (someAmmo _vehicle) exitWith {};
|
|
if ((!local _gunner) || {[_gunner] call EFUNC(common,isPlayer)}) exitWith {};
|
|
|
|
TRACE_2("need ammo",someAmmo _vehicle,magazinesAllTurrets _vehicle);
|
|
|
|
[_vehicle, _gunner] call FUNC(ai_reload);
|