mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 10:11:51 +03:00
use createVeh non-array on the server
Faster by my testing. Also, some more performance related changes to server_monitor
This commit is contained in:
@@ -5,7 +5,8 @@ private ["_blocked","_flame","_position"];
|
||||
_position = _x;
|
||||
{if (_position distance _x < 150) exitWith {_blocked = true;};} forEach dayz_townGeneratorBlackList;
|
||||
if (!_blocked && (random 1 < 0.33)) then {
|
||||
_flame = createVehicle [ "flamable_DZ", _x, [], 0, "CAN_COLLIDE"];
|
||||
//_flame = createVehicle [ "flamable_DZ", _x, [], 0, "CAN_COLLIDE"];
|
||||
_flame = "flamable_DZ" createVehicle _x;
|
||||
_flame inflame true;
|
||||
_flame setVariable ["permaLoot",true]; // = won't be removed by the cleaner, cf. sched_lootpiles.sqf
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user