mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
49f4ea23e7
* secret handshake? * fix my name * new github username
23 lines
540 B
Plaintext
23 lines
540 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Grim
|
|
* Handles AI GetIn on an empty weapon
|
|
*
|
|
* Arguments:
|
|
* GetIn EH
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_staticWeapon", "_role", "_gunner"];
|
|
TRACE_3("getInEH:",_staticWeapon,_role,_gunner);
|
|
|
|
if ((!local _gunner) || {[_gunner] call EFUNC(common,isPlayer)}) exitWith {};
|
|
if (someAmmo _staticWeapon) exitWith {};
|
|
|
|
TRACE_2("need ammo",someAmmo _staticWeapon,magazinesAllTurrets _staticWeapon);
|
|
|
|
[_staticWeapon, _gunner, currentWeapon _staticWeapon] call FUNC(ai_reload);
|