Jump to content
Sign in to follow this  
cklymowsky

Help with scripting marker for Briefing to move to map position with createDiaryRecord

Recommended Posts

HI ALl,

 

Not sure what I'm doing wrong here. I want to create a marker via scripting, then tag it in createDiaryRecord, so that in the mission briefing when you select the marker name the map move to the position. So far I only have the tag in present but when you click the underlined text RADIO TOWER 1  in the briefing map nothing happens?

 

fn_diaries.sqf

_randomPosMapNoWater = [nil, ["water"]] call BIS_fnc_randomPos;
marker = createMarker ["GOHERE", _randomPosMapNoWater];
marker setMarkerShape "RECTANGLE";
marker setMarkerSize [100,100];
player createDiaryRecord ["Diary", ["RADIO TOWER", "Capturing the <marker name = marker>RADIO TOWER 1</marker> allows you to ..."]];

 

Nevermind,

 

The name in <marker name = marker>RADIO TOWER 1</marker>has to be the sting in createMartker "GOHERE".

Edited by cklymowsky
Just figured it out after I posted

Share this post


Link to post
Share on other sites

hi man, try with

<marker name='NameOfTheMarker'>RADIO TOWER 1</marker>

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×