mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: tcvm
|
|
* If the CSW is mounted or in use this will not allow you to dismount the weapon.
|
|
*
|
|
* Arguments:
|
|
* 0: CSW <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Can dismount weapon <BOOL>
|
|
*
|
|
* Example:
|
|
* cursorObject call ace_csw_fnc_assemble_canPickupWeapon
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_vehicle"];
|
|
|
|
GVAR(defaultAssemblyMode) && {alive _vehicle} && {((crew _vehicle) findIf {alive _x && {!unitIsUAV _x}}) == -1} // return
|