2024-02-07 23:36:13 +00:00
|
|
|
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: tcvm
|
2024-07-27 17:42:31 +00:00
|
|
|
* Checks if the player can deploy the tripod.
|
2024-02-07 23:36:13 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2024-07-27 17:42:31 +00:00
|
|
|
* 0: Player <OBJECT>
|
2024-02-07 23:36:13 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Can deploy <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* player call ace_csw_fnc_canDeployTripod
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2024-07-27 17:42:31 +00:00
|
|
|
params ["_player"];
|
2024-02-07 23:36:13 +00:00
|
|
|
|
2024-07-27 17:42:31 +00:00
|
|
|
private _secondaryWeapon = secondaryWeapon _player;
|
2024-02-07 23:36:13 +00:00
|
|
|
|
|
|
|
_secondaryWeapon != "" && {getText (configFile >> "CfgWeapons" >> _secondaryWeapon >> QUOTE(ADDON) >> "type") == "mount"} // return
|