Addition for #299

This commit is contained in:
Christian 2017-12-13 18:43:40 +01:00
parent c9be439195
commit e69aff9b93
1 changed files with 6 additions and 5 deletions

View File

@ -13,11 +13,12 @@ BOOL
*/
params ["_vehicleclass"];
if ((typeName _vehicleclass) != "STRING") exitWith {};
private _isUAV = false;
if((getNumber(configFile >> "CfgVehicles" >> _vehicleclass >> "isUav")) == 1) then {
_isUAV = true;
if ((typeName _vehicleclass) == "STRING") then {
if ((getNumber(configFile >> "CfgVehicles" >> _vehicleclass >> "isUav")) == 1) then {
_isUAV = true;
};
};
_isUAV;
_isUAV;