mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ee79decb45
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
24 lines
522 B
Plaintext
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
|