If you wanted to get rid of the dynamic spawning entirely you could open up your spawn_vehPatrol.sqf and find the line that says _startPos = [(getMarkerPos "DZAI_centerMarker"),300 + random((getMarkerSize "DZAI_centerMarker") select 0),random(360),false,[1,300]] call SHK_pos; and change that to...
researching into DZAI_deleteObject I found
DZAI_deleteObject = {
private ["_obj","_delay"];
_obj = _this select 0;
_delay = _this select 1;
DZAI_deleteObjectQueue set [count DZAI_deleteObjectQueue,[_obj,(time + _delay)]];
}; in dzai_functions.sqf which means that in...
add _deletetime = 3000; //time in seconds to the top of crash spawner.sqf somewhere then at the bottom somewhere do
while{true}do{
_timeStart=time;
if (_timeStart = _deletetime + time) then {
deleteVehicle _crash;
};
};
EDIT: I hope it works for you guys, I can't really...
Oh wait, that's probably because there is a delete timer on it to prevent there from being billions of boxes everywhere. 240 seconds and the box despawns, you can adjust this or remove it if you want.
instead of using a publicvariable you could execute it like
_crashposition = getPos _crash;
[_crashposition] execVM "\z\addons\dayz_code\modules\crashmarker.sqf"; //call the spawn marker spawn script
then in crashmarker.sqf at the top do _coords = _this select 0; then _crashmarker = createMarker...
alternatively you can make the blood bag right click. This doesn't restrict it to if you have blood below 12000 but it does make less scroll clutter and you're less likely to accidentally the oops and be missing a bloodbag all of a sudden :)
It is possible, but I would have no idea how to implement it. I'm sure someone out there has knowledge of how to do it, but unfortunately, I am not one of them :(
It should look something like this (using your code, just tweaked it a little bit and added how to delete the marker)
//Options
HeliCrashMSG = true; //show message to players
HeliCrashMarker = true; //show crash locations with markers
if ( HeliCrashMarker ) then{
//create...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.