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