mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
465 B
Plaintext
25 lines
465 B
Plaintext
/*
|
|
* 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];
|
|
|
|
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|