summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/demos/sqf
blob: 9f54383c705bb5cedc973dd550a173c8c00f2206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;