mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
414 B
Plaintext
19 lines
414 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private ["_ctrl", "_data", "_direction"];
|
|
|
|
_ctrl = _this select 0;
|
|
_data = _this select 1;
|
|
|
|
GVAR(curSelMarkerAngle) = _data;
|
|
|
|
_direction = round _data;
|
|
if (_direction < 0) then {
|
|
_direction = _direction + 360;
|
|
};
|
|
|
|
((ctrlParent _ctrl) displayCtrl 1221) ctrlSetText format [localize "STR_ACE_Markers_MarkerDirection", _direction];
|
|
|
|
GVAR(currentMarkerAngle) = _data;
|