Jump to content
  • 0

refreshing map markers


Achmed

Question

The mission script that i am using puts a marker on the map of where the mission is. the down side to this is if its already running when you join the server then you dont know where it is.

 

how would i go about making it refresh every 5 min so new players can see it also?

 

the code that places the marker is

//Created by Falcyn [QF]
	_MainMarker = createMarker ["MainMarker", Ccoords];
	_MainMarker setMarkerColor "ColorGreen";
	_MainMarker setMarkerShape "ELLIPSE";
	_MainMarker setMarkerBrush "Grid";
	_MainMarker setMarkerSize [175,175];

this is called by this bit of code

Ccoords = _coords;
publicVariable "Ccoords";
[] execVM "debug\addmarkers.sqf";

does anyone know what i would need to add to make then get readded every 5 min

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This will help you with JIP clients. Or spawn them in the mission pbo so it exectutes client side everytime someone joins

if (isServer) exitWith {}; // only run this on client side
 
_markerstr1 = createMarker ["capgolovo",[8492.3555,2665.2122]];
_markerstr1 setMarkerType "hd_objective";
_markerstr1 setMarkerText "Cap Golova Outpost";
_markerstr1 setMarkerColor "ColorRed";
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...