mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
599 B
Plaintext
24 lines
599 B
Plaintext
|
/*
|
||
|
Name: AGM_Goggles_fnc_isDivingGoggles
|
||
|
|
||
|
Author: Garth de Wet (LH)
|
||
|
|
||
|
Description:
|
||
|
Determines whether current goggles worn by passed unit is diving goggles or a variant of them.
|
||
|
|
||
|
Parameters:
|
||
|
0: String - Glasses classname
|
||
|
|
||
|
Returns:
|
||
|
Boolean - whether diving goggles are worn
|
||
|
|
||
|
Example:
|
||
|
(goggles player) call AGM_Goggles_fnc_isDivingGoggles;
|
||
|
*/
|
||
|
private ["_result", "_glasses"];
|
||
|
_glasses = _this;
|
||
|
_result = _glasses == "G_Diving";
|
||
|
if (_result) exitWith {true};
|
||
|
_result = [configFile >> "CfgGlasses" >> _glasses, configFile >> "CfgGlasses" >> "G_Diving"] call CBA_fnc_inheritsFrom;
|
||
|
_result
|