Skip to content

Commit

Permalink
Addition for #299
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyqer committed Dec 13, 2017
1 parent f596b0d commit 8ea30ed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Missionframework/scripts/shared/functions/F_kp_isClassUAV.sqf
Expand Up @@ -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;

0 comments on commit 8ea30ed

Please sign in to comment.