FallingSheep
OpenDayZ Lord!
well some sort of progress i guess, i can see in the RPT that the markers are being called and place in the right pos but they just dont show up ingame??? its driving me crazy!!
heres what ive got so far
in crash_spawner.sqf above this line
paste this
now create a new sqf and call it crashmarker.sqf
now save it in the same folder as crash_spawner.sqf
thats it
im not sure how long wrecks stay for but i just made it delete the marker after 1 min for testing
heres what ive got so far
in crash_spawner.sqf above this line
Code:
_endTime = time - _startTime;
Code:
//Heli crash Markers and alert player
crashPostion = getPos _crash; //find crash positon
PublicVariable "crashPostion";// make crash postion available to the spawn marker script
[] execVM "\z\addons\dayz_code\modules\crashmarker.sqf"; //call the spawn marker spawn script
Code:
//CRASH SITE MAP MARKERS AND MESSAGE
//Options
HeliCrashMSG = true; //show message to players when wreck crashes
HeliCrashMarker = true; //show crash locations with markers
if ( HeliCrashMarker ) then{
//create marker at crash site
_crashmarker = createMarker ["HeliCrashsiteMarker", crashPostion]; // create marker
_crashmarker setMarkerShape "ELLIPSE"; //set marker shape
_crashmarker setMarkerBrush "GRID"; // set marker brush
_crashmarker setMarkerType "Vehicle"; //set marker type
_crashmarker setMarkerText "CRASHED HELICOPTER"; //set marker text
_crashmarker setMarkerColor "ColorBlue"; // set marker color
//Debug
diag_log(format["CRASH MARKER: marker created at %1", crashPostion]);//writes to RPT
};
//message players
//if message are on
if ( HeliCrashMSG ) then{
//message if markers are on
if ( HeliCrashMarker ) then{
systemChat("A Helicopter has crashed! check your map for location!");
};
}else{
//message if markers are off
if ( HeliCrashMSG ) then{
systemChat("A Helicopter has crashed! Go search for it!");
};
};
sleep 60; //how long to wait before removing marker 60 is 1 min, 120 is 2 min, etc
deleteMarker _crashmarker
deleteMarker "HeliCrashsiteMarker"//just in case
diag_log(format["CRASH MARKER: marker deleted at %1", crashPostion]); //writes to RPT
thats it
im not sure how long wrecks stay for but i just made it delete the marker after 1 min for testing