/* * Author: GitHawk * Check if a unit can pick up ammo. * * Arguments: * 0: Target * 1: Unit * * Return Value: * Can Pick Up Ammo * * Example: * [player, tank] call ace_rearm_fnc_canTakeAmmo * * Public: No */ #include "script_component.hpp" params ["_target", "_unit"]; !(isNull _unit || {!(_unit isKindOf "CAManBase")} || {!local _unit} || {(_target distance _unit) > REARM_ACTION_DISTANCE} || {!isNull (_unit getVariable [QGVAR(dummy), objNull])})