/* * Author: PabstMirror * Returns the side specifc key for a vehicle * * Arguments: * 0: Vehicle * * Return Value: * The vehicle's side key classname * * Example: * [tank1] call ACE_VehicleLock_fnc_getVehicleSideKey; * * Public: No */ #include "script_component.hpp" private ["_vehConfigSide","_vehSide","_returnValue"]; PARAMS_1(_veh); if (isNull _veh) exitWith {ERROR("null vehicle"); "error"}; _vehConfigSide = [_veh, true] call BIS_fnc_objectSide; _vehSide = _veh getVariable [QGVAR(lockSide), _vehConfigSide]; _returnValue = ""; switch (_vehSide) do { case (west): {_returnValue = "ACE_key_west"}; case (east): {_returnValue = "ACE_key_east"}; case (resistance): {_returnValue = "ACE_key_indp"}; default {_returnValue = "ACE_key_civ"}; }; _returnValue