2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-05 20:00:59 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2015-04-05 22:50:07 +00:00
|
|
|
* Toggles the mortart to show mils or degrees
|
2015-04-05 20:00:59 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-04-05 22:50:07 +00:00
|
|
|
* 0: Vehicle <OBJECT>
|
2015-04-05 20:00:59 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-05 20:00:59 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-04-05 22:50:07 +00:00
|
|
|
* [mortar,bob] call ace_mk6mortar_fnc_toggleMils;
|
2015-04-05 20:00:59 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2019-12-17 16:14:45 +00:00
|
|
|
params ["_mortarVeh"];
|
|
|
|
TRACE_1("toggleMils",_mortarVeh);
|
2015-04-05 20:00:59 +00:00
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _currentSetting = _mortarVeh getVariable [QGVAR(useMils), true];
|
2015-04-05 20:00:59 +00:00
|
|
|
_mortarVeh setVariable [QGVAR(useMils), (!_currentSetting)];
|