ACE3/addons/csw/functions/fnc_canGetIn.sqf
Grim ee79decb45
CSW - Code cleanup (#9777)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-02-07 20:36:13 -03:00

24 lines
522 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Checks if it's possible to get in the CSW
*
* Arguments:
* 0: Vehicle <OBJECT>
*
* Return Value:
* None
*
* Example:
* cursorObject call ace_csw_fnc_canGetIn
*
* Public: No
*/
// Hide this action if quick mount is enabled
if (GVAR(quickmountEnabled)) exitWith {false};
params ["_vehicle"];
alive _vehicle && {!(alive (gunner _vehicle))} && {(locked _vehicle) < 2} && {!(_vehicle lockedTurret [0])} && {0.3 < ((vectorUp _vehicle) select 2)} // return