Jump to content
vastiny

Marker that only shows on GPS?

Recommended Posts

Title self explanatory. Is there any way to create a marker at specified coordinates, that ONLY appears on the GPS when you're nearby, and not on the Map?

Share this post


Link to post
Share on other sites

Hi vastiny, I don't know if such markers exist, but you can always try a workaround

addMissionEventHandler ["Map", {
  		if (visibleMap) then {
  			"marker_0" setMarkerTypeLocal "hd_objective";
		} else {
			"marker_0" setMarkerTypeLocal "Empty";
		};
}];

 

  • Like 1

Share this post


Link to post
Share on other sites
On 2/8/2017 at 2:55 AM, Nikander said:

Hi vastiny, I don't know if such markers exist, but you can always try a workaround


addMissionEventHandler ["Map", {
  		if (visibleMap) then {
  			"marker_0" setMarkerTypeLocal "hd_objective";
		} else {
			"marker_0" setMarkerTypeLocal "Empty";
		};
}];

 

 

alternative, hide marker with setting alpha to 0. Setting to alpha 1 show marker again.

 

"marker_0" setMarkerAlpha 0; 

 

  • Like 1

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

×