Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Lorenz94

Need Help With Hide Markers!

Recommended Posts

Hello,

what I'm trying to do is to hide map markers drawn by a unit (let's say Alpha 1-1) and hide all these markers to other groups. 

 

I would like to do this so that only the player in your group can see markers, and others not, for each group.

 

What I'm able to do right now is to disable all markers to everyone, but I don't know how to change this to what I want.

 

Here's my actual code:

Spoiler

{
private "_a";
_a = toArray _x;
_a resize 15;
			   
	if (toString _a == "_USER_DEFINED #") then {
		deleteMarker _x;
	}  
	sleep 0.01; //0.1 is too long and the marker can be visible for a while
} forEach allMapMarkers;


 

 

 

Thank you!

Share this post


Link to post
Share on other sites

The markers are displayed within the channel choice. If you choose group, the marker is not displayed on other group maps.

Share this post


Link to post
Share on other sites
Just now, pierremgi said:

The markers are displayed within the channel choice. If you choose group, the marker is not displayed on other group maps.

Of course, but what I would like to avoid is different groups to "pass" information to others, so I need to limit all the markers to the group "kind". The problem is that I don't know how to do this!

Thank you for your reply.

Share this post


Link to post
Share on other sites
On 8/17/2017 at 10:56 PM, Lorenz94 said:

I need to limit all the markers to the group "kind". The problem is that I don't know how to do this!

 

Change your forEach statement to exclude markers created in the group channel, like this

...
} forEach (allMapMarkers select {_x splitString "#/" select 3 != "3"})

I hope this helps

Share this post


Link to post
Share on other sites

×