mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
56eae4060c
Code formatting changes from 9234
24 lines
519 B
Plaintext
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
|