Jump to content
  • 0

Mr.Exodus

Question

So i found this script a while ago, can´t remember who made it. (i think it was a dude called matt).

Anyway i cant get it to work since its outdatet, if anyone could take a look at the script! Since im kinda lost..

 

The script should place a marker on the map, when a crashsite is spawned. 

 

 //Heli crash Markers and alert player         

     heliCrash = _pos;
     [heliCrash] execVM "\z\addons\dayz_server\modules\crashmarker.sqf"; //call the spawn marker spawn script
     publicVariable "heliCrash";//not sure if needed but its there :P
 

 

I place the code in Crash_spawner.sqf right under my:   "diag_log(format["CRASHSPAWNER: Crash completed! Wreck at: %2 - Runtime: %1 Seconds || Distance from calculated POC: %3 meters", round(_endTime), str(getPos _crash), round(_position distance _crash)]); "

 

And added a new file called crashmarker.sqf, in my modules folder. And added this code;

 

//CRASH SITE MAP MARKERS AND MESSAGE
     private["_nul"];
     _CrashCoords = _this select 0;
     //create marker at crash site
     _event_marker = createMarker ["HeliCrashsiteMarker", _CrashCoords];
     _event_marker  setMarkerColor "ColorBlue";
     _event_marker  setMarkerShape "ELLIPSE";
     _event_marker  setMarkerBrush "Grid";
     _event_marker  setMarkerSize [175,175];
    _event_marker  setMarkerText "Crash site";
     //DEBUG
     diag_log(format["CRASH MARKER: marker created at %1", _CrashCoords]);
 
     systemChat("A Military unit have been shot down! check your map for location!");
     
_wait_time = 600; //wait 10 min   
// Wait
sleep _wait_time;
// Clean up marker

 

deleteMarker _event_marker;

 

My crashsites are working fine, but still no marks! Thx for the help!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...