Add Vehicles In Map With Editor (and then, do it working!)

Fousman1980

New Member
I discovered randomly and do not know if you know it!
If something wrong, delete the post!

(It works on me! I have put in 700+ vehicles in 10 min and work perfect for all player)
These vehicles, when I reboot the servers, return to starting position!
I suggest airplanes, boats, and motorcycles!
 
Last edited:
If this works, I love you. I've got a survivor base for long term players and have to keep yelling at people for taking the vehicles and hoarding them at thier own bases etc. This way, they can take them all they want but they'll respawn on restart!

Anyone have any idea if/what this might leave your server vulnerable to? Is it just ammo boxes spawned by hackers hopefully?
 
when i run server_cleanup, every hero - bandit house repaired vehicles, and etc... jus goes off... and then with pmain i get vehs spawned... so it will don't work for me i guess.
 
I believe this need :
Go to File dayz_server\init\server_functions and find

diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
(vehicle _x) setDamage 1;
_x setDamage 1;

and do like this

//diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
(vehicle _x) setDamage 0;
_x setDamage 0;

SAVE THIS and go to :

Open your Compile\server_updateobject.sqf and find the line with

if (_isNotOk) exitWith { deleteVehicle _object; };

Replace with

//if (_isNotOk) exitWith { deleteVehicle _object; };


SAVE and START the dayZ ;))
 
Last edited:
I discovered randomly and do not know if you know it!
If something wrong, delete the post!

Edit : server_cleanup.fsm
find in

"" \n
"/*" \n
"//Check for Ammobox" \n
" {" \n
" if(!(_x isKindOf ""WeaponHolder"")) then {" \n
" diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
" deleteVehicle _x;" \n
" };" \n
" } forEach allMissionObjects ""ReammoBox"";" \n
"*/" \n
"" \n
"//Check for hackers" \n
" {" \n
" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
" (vehicle _x) setDamage 1;" \n
" _x setDamage 1;" \n
" };" \n
" } forEach allUnits;" \n
"" \n


AND DO LIKE THIS

"/*" \n
"//Check for Ammobox" \n
"// {" \n
"// if(!(_x isKindOf ""WeaponHolder"")) then {" \n
"// diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
"// deleteVehicle _x;" \n
"// };" \n
"// } forEach allMissionObjects ""ReammoBox"";" \n
"*/" \n
"" \n
"//Check for hackers" \n
"// {" \n
"//if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
"// diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
"// (vehicle _x) setDamage 1;" \n
"// _x setDamage 1;" \n
"// };" \n
"// } forEach allUnits;" \n
"" \n

(It works on me! I have put in 700+ vehicles in 10 min and work perfect for all player)
These vehicles, when I reboot the servers, return to starting position!
I suggest airplanes, boats, and motorcycles!



Thanks so much, it worked for me!
 
Back
Top