Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Grumpy Old Man

Interactive Marker text in Diary/Task not working

Recommended Posts

Hey folks,

just something minor I stumbled across but unpleasing non the less:

When I create a marker within a script and add a diary entry and a task containing the marker the text is greyed out but unclickable, or there just isn't anything happening when clicking on it.

When I create a marker in the editor it's working just fine, no matter the markerType.

The marker is appearing like it's supposed to.

Here's the snippet:

_mtext = format ["Markertest: <marker name='_mtext'>%1</marker> has %2",name _unit,text _rndsentence];

_m = createMarker [_mtext,[(_locationPos select 0) + random 250,(_locationPos select 1) + random 250]];
_m setMarkerShape "ICON";
_m setMarkerSize [1,1];
_m setMarkerType "hd_warning";
_m setMarkerAlpha 1;
_m setMarkerColor "ColorRed";
_m setmarkertext _mtext;

player creatediaryrecord ["Diary",["Markertest:",_mtext]];
_nul = [player, _mtext, [_mtext, "Markertest!", ""], _mpos, true] spawn BIS_fnc_taskCreate;

The marker, task and diary entry are appearing correct, with the markers text greyed out like it's supposed to be, but when clicking on the marker name nothing happens.

If I place a marker named "enemyBase" in the editor using this line, the diary and task entries are clickable and will zoom the map to the marker, which doesn't happen with the script snippet above.

player createDiaryRecord ["Diary", ["Intel", "Enemy base is on grid <marker name='enemyBase'>161170</marker>"]];

Am I missing something?

Share this post


Link to post
Share on other sites

_m = createMarker [[color="#FF0000"]"[/color]_mtext[color="#FF0000"]"[/color],[(_locationPos select 0) + random 250,(_locationPos select 1) + random 250]];

Else your are naming the marker "Markertest: <marker name='_mtext'>Bob</marker> has betty swallocks" and the task link is lookng for a marker called "_mtext".

Share this post


Link to post
Share on other sites
Sign in to follow this  

×