rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/sqf
2019-10-21 10:18:17 +02:00

15 lines
374 B
Plaintext

// Creates a dot marker at the given position
#include "script_component.hpp"
params ["_pos", "_txt"];
if (isNil QGVAR(markerID)) then {
GVAR(markerID) = 0;
};
_markerstr = createMarker [QGVAR(marker) + str GVAR(markerID), _pos];
_markerstr setMarkerShape "ICON";
_markerstr setMarkerType "hd_dot";
_markerstr setMarkerText _txt;
GVAR(markerID) = GVAR(markerID) + 1;