#include "..\script_component.hpp" /* * Author: tcvm * If the CSW is mounted or in use this will not allow you to dismount the weapon * * Arguments: * 0: Static Weapon * * Return Value: * Can Dismount * * Example: * [cursorObject] call ace_csw_fnc_assemble_canPickupWeapon * * Public: No */ params ["_staticWeapon"]; // Assembly mode: [0=disabled, 1=enabled, 2=enabled&unload, 3=default] private _assemblyMode = [false, true, true, GVAR(defaultAssemblyMode)] select (_staticWeapon getVariable [QGVAR(assemblyMode), 3]); _assemblyMode && {alive _staticWeapon} && {((crew _staticWeapon) findIf {alive _x && {!unitIsUAV _x}}) == -1} // return