mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
23 lines
456 B
Plaintext
23 lines
456 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Toggles the mortart to show mils or degrees
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [mortar,bob] call ace_mk6mortar_fnc_toggleMils;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_mortarVeh"];
|
|
TRACE_1("toggleMils",_mortarVeh);
|
|
|
|
private _currentSetting = _mortarVeh getVariable [QGVAR(useMils), true];
|
|
_mortarVeh setVariable [QGVAR(useMils), (!_currentSetting)];
|