Jump to content

Delete vehicles parked in safezones on restart


Halvhjearne

Recommended Posts

  • 1 month later...

Cheranrus. Im do it with original tutorial, but isn't work. :(

 

try remove the part in server_functions.sqf and change this line in server_monitor.sqf:

[_object] call server_deleteObjInsafezone;

to:

[_object] execVM "path\whereyougot\thescript.sqf";

and change the path and script name acordingly

Link to comment
Share on other sites

its more likely because the OP was edited at least twice now and not correct any of them  lol , the file name and call to it (werent) and still arent the same, the caps on the letters will effect it in most cases (specially on windows system) works for me when i name the file and the call to it the same case, thanks for the script

Link to comment
Share on other sites

its more likely because the OP was edited at least twice now and not correct any of them  lol , the file name and call to it (werent) and still arent the same, the caps on the letters will effect it in most cases (specially on windows system) works for me when i name the file and the call to it the same case, thanks for the script

 

i edited it once and that was because i forgot to change call to execVM when i added the updated script and install instructions, either way that dosnt matter since he had this problem even before i changed it.

... besides that i cant tell him what is wrong when i cant see his logs.

Link to comment
Share on other sites

 

Yes, use Maca's script in server_monitor.sqf and remove the damage call

{
    if ((_pos distance _x) < 75) then {    
           
        _ownerID = "0";
    };
} forEach [zonestary, zonebash, zoneklen];

You would need to define the safezones in mission.sqm

 

Or you could run it with only the most damaged vehicles removed

{
    if ((_pos distance _x) < 75) then {
        if (_damage > 0.9) then {
            _damage = 1;
            [_idKey,false,"SERVER"] call server_deleteObj;
            diag_log format["DELETING SAFEZONE VEHICLE: %1", [_idKey, _type]];
        };
        _ownerID = "0";
    };
} forEach [zonestary, zonebash, zoneklen];

where would i put this in the server_monitor.sqf i put it in there and it deleted all my players items and vehicles

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Just to let you know... I am getting this Error in my rpt. This is with your base set up... the { don't work in the arrays your trying to set up they should be [ or am i totally missing something?

 

case "tavi":{

HALV_VEHICLE_CLEAN>
15:07:43 Error position: <];
};

case "tavi":{

HALV_VEHICLE_CLEAN>
15:07:43 Error Missing [
15:07:43 File z\addons\dayz_server\compile\server_traderclean.sqf, line 80
15:07:43 Error in expression <,12766.889,0], 150, "Hero Camp],





];
};

Link to comment
Share on other sites

Just to let you know... I am getting this Error in my rpt. This is with your base set up... the { don't work in the arrays your trying to set up they should be [ or am i totally missing something?

 

case "tavi":{

HALV_VEHICLE_CLEAN>

15:07:43 Error position: <];

};

case "tavi":{

HALV_VEHICLE_CLEAN>

15:07:43 Error Missing [

15:07:43 File z\addons\dayz_server\compile\server_traderclean.sqf, line 80

15:07:43 Error in expression <,12766.889,0], 150, "Hero Camp],

];

};

Im not a scripter, but it looks like you're missing the bracket.

 ["Hero Camp"] , 

either that or there should not be a bracket at all.

Link to comment
Share on other sites

  • 2 weeks later...

Anyone got a pre-made set of locations for Panthera? I'm lazy :P xD also, in regards to setting world name, what is it i do to configure it for each map or is it done automatically based on what the server is running?, it'd be great to just put the script into my server pbo that's shared over all of my servers (Chernarus, Panthera, Napf) maintaining different versions per-server get quite tedious

Link to comment
Share on other sites

Anyone got a pre-made set of locations for Panthera? I'm lazy :P xD also, in regards to setting world name, what is it i do to configure it for each map or is it done automatically based on what the server is running?, it'd be great to just put the script into my server pbo that's shared over all of my servers (Chernarus, Panthera, Napf) maintaining different versions per-server get quite tedious

 

You can always goto your mission sqf and grab the trader locations. Server_Pbo/Missions/Map/Traders. Just search for the helipads in each trader and use them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...