ACE3/addons/mk6mortar/functions/fnc_toggleMils.sqf

23 lines
453 B
Plaintext
Raw Normal View History

#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:
* 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
*/
params ["_mortarVeh"];
TRACE_1("toggleMils",_mortarVeh);
2015-04-05 20:00:59 +00:00
private _currentSetting = _mortarVeh getVariable [QGVAR(useMils), true];
2015-04-05 20:00:59 +00:00
_mortarVeh setVariable [QGVAR(useMils), (!_currentSetting)];