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>
|
|
|
|
* 1: Player <OBJECT>
|
2015-04-05 20:00:59 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-04-05 22:50:07 +00:00
|
|
|
* No
|
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
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
PARAMS_2(_mortarVeh,_unit);
|
|
|
|
|
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)];
|