Jump to content
Sign in to follow this  
1para{god-father}

Marker Colour for JIP

Recommended Posts

i have some markers that change color , how can i make sure JIP also get the same color as they get the original color at the moment when they join ?

markers are "patrol1","patrol2","patrol3","patrol4",

i presume i need to check on init and set them to the same color just how ?

Thanks

Share this post


Link to post
Share on other sites

I think it may be the setMarkerColorLocal command right? Sorry I have never worked on MP scripts before, but this does look like it will for other players by assigning a local marker colour to each player who joins..

Share this post


Link to post
Share on other sites

use http://community.bistudio.com/wiki/onPlayerConnected

What is not synchronized at JIP

- Markers (The markers themselves and their updated properties, e.g positions (if any))

- you can use the onPlayerConnected function to setMarkerPos the markers you wish to have updated to JIP players, this way when the player joins, the markers and their properties are transferred to the player

viz http://community.bistudio.com/wiki/6thSense.eu:EG#Join_in_Progress

Share this post


Link to post
Share on other sites
use http://community.bistudio.com/wiki/onPlayerConnected

What is not synchronized at JIP

- Markers (The markers themselves and their updated properties, e.g positions (if any))

- you can use the onPlayerConnected function to setMarkerPos the markers you wish to have updated to JIP players, this way when the player joins, the markers and their properties are transferred to the player

viz http://community.bistudio.com/wiki/6thSense.eu:EG#Join_in_Progress

Thanks ,

So how would I get the colors of the 4 markers , they never change position just Color.

Sorry cannot get my head around this one, would this work ?

Init

onPlayerConnected "[_id, _name] execVM ""PlayerConnected.sqf""";

PlayerConnected.SQF

_color1 = getMarkerColor "patrol1";
"Patrol1" setMarkerColor _color ;
_color2 = getMarkerColor "patrol2";
"Patrol2" setMarkerColor _color 2;
etc...

Edited by psvialli

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  

×