Guest Posted November 25, 2013 Report Share Posted November 25, 2013 What is the use of this ? Using that script the Event Markers will be reloaded every 30 seconds until the Event is finished! So every player, regardless if he was on the Server when the Event started will have a marker on the map! How to use it? Delete your actual Create marker Section from your events and add this: // Configurate Marker - Refresh Marker Script by *hs-s.com | waTTe - www.banditparty.de _markerRadius = 100; _markershape = "RECTANGLE"; _markercolor = "ColorBlack"; _missiontype = 1; //0=EPOCH_EVENT_RUNNING 1=SPECIAL_EVENT_RUNNING _refreshmarker = [_location,_markerRadius,_markershape,_markercolor,_missiontype] execVM "\z\addons\dayz_server\modules\refreshmarker.sqf"; You can edit the size, shape and color (just use _missiontype = 0; i have modified it cause i have different events running). Create a refreshmarker.sqf and copy it into your dayz_server.pbo (folder modules). The refreshmarker.sqf looks like this: // Create Marker - Refresh Marker Script by *hs-s.com | waTTe - www.banditparty.de _coords = _this select 0; _radius = _this select 1; _shape = _this select 2; _color = _this select 3; _type = _this select 4; if(_type == 0) then { // 0 Normal Event while{EPOCH_EVENT_RUNNING} do { _event_marker = createMarker [ format ["loot_event_marker_%1", time], _coords]; _event_marker setMarkerShape _shape; _event_marker setMarkerColor _color; _event_marker setMarkerAlpha 0.5; _event_marker setMarkerSize [(_radius + 50), (_radius + 50)]; sleep 15; deleteMarker _event_marker; }; }; if(_type == 1) then { // 1 Special Event while{SPECIAL_EVENT_RUNNING} do { _event_marker = createMarker [ format ["loot_event_marker_%1", time], _coords]; _event_marker setMarkerShape _shape; _event_marker setMarkerColor _color; _event_marker setMarkerAlpha 0.5; _event_marker setMarkerSize [(_radius + 50), (_radius + 50)]; sleep 15; deleteMarker _event_marker; }; }; Done. have fun waTTe PS: Please make sure that in your events the parameters EPOCH_EVENT_RUNNING = true and EPOCH_EVENT_RUNNING = false are defined at the beginning and the end of your event. Otherwise it wont work! Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2014 Report Share Posted January 31, 2014 Nice, thanks for sharing! Link to comment Share on other sites More sharing options...
ReDBaroN Posted October 12, 2014 Report Share Posted October 12, 2014 What is the use of this ? Using that script the Event Markers will be reloaded every 30 seconds until the Event is finished! So every player, regardless if he was on the Server when the Event started will have a marker on the map! How to use it? Delete your actual Create marker Section from your events and add this: // Configurate Marker - Refresh Marker Script by *hs-s.com | waTTe - www.banditparty.de _markerRadius = 100; _markershape = "RECTANGLE"; _markercolor = "ColorBlack"; _missiontype = 1; //0=EPOCH_EVENT_RUNNING 1=SPECIAL_EVENT_RUNNING _refreshmarker = [_location,_markerRadius,_markershape,_markercolor,_missiontype] execVM "\z\addons\dayz_server\modules\refreshmarker.sqf"; Hey, thanks for this, I need to use with my treasure and Military epoch events. Quick question, do I need to add _markershape, _markercolor, _missiontype & _refreshmarker to the private array at the top of my events? Currently, they have _event_marker in the private array and the marker block looks like this: _event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position]; _event_marker setMarkerShape "ELLIPSE"; _event_marker setMarkerColor "ColorYellow"; _event_marker setMarkerAlpha 0.5; _event_marker setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)]; Sorry if I'm asking a daft question but, I'm not savvy with coding.... :/ Thanks Link to comment Share on other sites More sharing options...
FoamysWorld Posted November 7, 2014 Report Share Posted November 7, 2014 Hey, thanks for this, I need to use with my treasure and Military epoch events. Quick question, do I need to add _markershape, _markercolor, _missiontype & _refreshmarker to the private array at the top of my events? Currently, they have _event_marker in the private array and the marker block looks like this: _event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position]; _event_marker setMarkerShape "ELLIPSE"; _event_marker setMarkerColor "ColorYellow"; _event_marker setMarkerAlpha 0.5; _event_marker setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)]; Sorry if I'm asking a daft question but, I'm not savvy with coding.... :/ Thanks You should always put private variables in the private scope. Link to comment Share on other sites More sharing options...
ReDBaroN Posted November 8, 2014 Report Share Posted November 8, 2014 You should always put private variables in the private scope. Thanks! :) I'll add those to the top of my treasure and military missions. I'm hoping that may fix a problem I'm having with them where the crate despawns on time but the marker doesn't go and the event doesn't end for some time after that.... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now