/* * Author: commy2 * Check if the unit can unload a captive from the vehicle. * * Arguments: * 0: Unit that wants to unload a captive * 1: A captive. ObjNull for the first escorted captive * 2: Vehicle to unload a captive from * * Return Value: * The return value * * Example: * [player, bob, car1] call ACE_captives_fnc_canUnloadCaptive; * * Public: No */ #include "script_component.hpp" private ["_cargo"]; PARAMS_2(_unit,_vehicle); _cargo = crew _vehicle; // Can also unload from driver, gunner, commander, turret positions. They shouldn't be there anyway. _cargo = [_cargo, {_this getVariable [QGVAR(isHandcuffed), false]}] call EFUNC(common,filter); count _cargo > 0