Jump to content
Sign in to follow this  
mia389

Markers for only certain players

Recommended Posts

I have five markers on the map. I am trying to make the markers only visable to certain players.

I have tryed hiding them all useing this in the init file

"alpha" setMarkerAlpha 0;

"bravo" setMarkerAlpha 0;

"charlie" setMarkerAlpha 0;

"delta" setMarkerAlpha 0;

"echo" setMarkerAlpha 0;

That works but how do I make them appear for certain units. I tryed the "alpha" setMarkerAlpha 1; in the init line of the soldier. That didnt work. Is there a way to trigger them to appear to only certain players?

As of now my trigger shows them all to everyone.

Share this post


Link to post
Share on other sites

setmarkeralphalocal

And no, it won't work any better if you run it from a trigger that gets fired for all players.

Share this post


Link to post
Share on other sites
setmarkeralphalocal

And no, it won't work any better if you run it from a trigger that gets fired for all players.

How do I trigger it to only fire for a group? Do I put setmarkeralphalocal in the trigger or in the the init of unit?

Share this post


Link to post
Share on other sites

There are many ways, but heres one:

1. Name groups. Place this in the init line of units in a same group.

groupOne = group this

Obviously you can replace group name (groupOne) with anything you like.

2. Apply marker alpha for one group only:

if (player in units groupOne) then {"markerName" setmarkeralphalocal 1}

You can place that into a trigger's onAct field, in a waypoint, a script, pretty much anywhere.

Share this post


Link to post
Share on other sites

Sweet. Works perfect. Just hope it works on dedicated server now. Thanks for your help shk

Share this post


Link to post
Share on other sites

I use exactly the same method for one of my missions. My team has run that on a dedicated server with no issues, so I don't see why it wouldn't work!

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  

×