ACE3/addons/goggles/functions/fnc_isDivingGoggles.sqf

25 lines
519 B
Plaintext
Raw Normal View History

/*
2015-09-29 15:57:09 +00:00
* Author: commy2
* Determines whether passed goggles is diving goggles or a variant of them.
*
* Arguments:
* 0: Glasses classname <STRING>
*
* Return Value:
2015-09-29 15:57:09 +00:00
* Check if these goggles are diving goggles <BOOL>
*
* Example:
2015-09-29 15:57:09 +00:00
* [goggles ace_player] call ace_goggles_fnc_isDivingGoggles;
*
* Public: Yes
*/
#include "script_component.hpp"
2015-09-29 15:57:09 +00:00
params ["_glasses"];
2015-11-17 16:43:07 +00:00
private _config = configFile >> "CfgGlasses" >> _glasses;
2015-09-29 15:57:09 +00:00
if (!isClass _config) exitWith {false};
getNumber (_config >> "mode") == 1 // return