#include "..\script_component.hpp" /* * Author: LinkIsGrim * Checks if unit can be unloaded. * * Arguments: * 0: Unloader * 1: Target * * Return Value: * Can Unload * * Example: * [player, bob] call ace_medical_treatment_fnc_canUnloadUnit * * Public: No */ if !(GETEGVAR(medical,enabled,false)) exitWith {false}; params ["_unloader", "_target"]; !isNull objectParent _target && {!(lifeState _target in ["HEALTHY", "INJURED"])}