ACE3/addons/minedetector/functions/fnc_enableDetector.sqf

25 lines
471 B
Plaintext
Raw Normal View History

2016-05-03 20:37:02 +00:00
/*
* Author: Glowbal
* Enables the mine detector
*
* Arguments:
* 0: Unit <OBJECT>
* 1: detecter type <STRING>
*
* Return Value:
* None
*
* Example:
* [UNIT, DETECTOR_CLASS_NAME] call ace_minedetector_fnc_enableDetector
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit", "_detectorType"];
_unit setvariable [format[QGVAR(enable_%1), _detectorType], true];
["minedetector_enabled", [_unit, _detectorType]] call EFUNC(common,localEvent);