ACE3/addons/resting/functions/fnc_hasBipod.sqf

23 lines
405 B
Plaintext
Raw Normal View History

/*
* Author: Commy2
*
* Check if the weapon has a bipod
*
* Arguments:
* 0: weapon
*
* Return Values:
* Boolean
*
*/
2015-01-15 22:34:35 +00:00
#include "script_component.hpp"
EXPLODE_1_PVT(_this,_weapon);
2015-01-15 22:34:35 +00:00
private ["_config"];
2015-01-15 22:34:35 +00:00
_config = configFile >> "CfgWeapons" >> _weapon;
getNumber (_config >> "ACE_Bipod") == 1 ||
getNumber (_config >> "AGM_Bipod") == 1 ||
{getNumber (_config >> "tmr_autorest_deployable") == 1}