ACE3/addons/csw/functions/fnc_canDeployTripod.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

23 lines
456 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Checks if the unit can deploy a tripod
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Can deploy <BOOL>
*
* Example:
* player call ace_csw_fnc_canDeployTripod
*
* Public: No
*/
params ["_unit"];
private _secondaryWeapon = secondaryWeapon _unit;
_secondaryWeapon != "" && {getText (configFile >> "CfgWeapons" >> _secondaryWeapon >> QUOTE(ADDON) >> "type") == "mount"} // return