rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/sqf

15 lines
374 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
// 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;