ACE3/addons/csw/functions/fnc_canGetIn.sqf
johnb432 56eae4060c
CSW - Improve function headers & comments (#10149)
Code formatting changes from 9234
2024-07-27 19:42:31 +02:00

24 lines
519 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Checks if it's possible to get in the CSW.
*
* Arguments:
* 0: CSW <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