ACE3/addons/minedetector/functions/fnc_isDetectorEnabled.sqf

21 lines
388 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2016-05-03 20:37:02 +00:00
/*
* Author: Glowbal
* Check if the mine detector is enabled
*
* Arguments:
* 0: detecter type <STRING>
*
* Return Value:
* None
*
* Example:
* ["example"] call ace_minedetector_fnc_isDetectorEnabled
2016-05-03 20:37:02 +00:00
*
* Public: No
*/
params ["_unit", "_detectorType"];
2016-06-16 15:33:21 +00:00
alive _unit && {(_unit getVariable [format[QGVAR(enable_%1), _detectorType], false])};