From 7415c21c2b5d3ba82747f449d6d5e09cc2533b6a Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 15 Sep 2016 12:48:31 -0400 Subject: [PATCH] Small update to object_build Vanilla commit: https://github.com/DayZMod/DayZ/commit/a10173443b4d47d4f9739a50759d68c27b6340df --- SQF/dayz_code/actions/object_build.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/object_build.sqf b/SQF/dayz_code/actions/object_build.sqf index 74e0dd0c2..73ecd9a93 100644 --- a/SQF/dayz_code/actions/object_build.sqf +++ b/SQF/dayz_code/actions/object_build.sqf @@ -22,9 +22,9 @@ if (_build) then { _direction = getDir _ghost; _object = createVehicle [_classname, getMarkerpos "respawn_west", [], 0, "CAN_COLLIDE"]; - // if (_object isKindOf "DZ_buildables") then { _object allowDamage false; }; _object setDir _direction; - if ((Dayz_constructionContext select 5) or _keepOnSlope) then { + + if ((Dayz_constructionContext select 5) or (_keepOnSlope)) then { _object setVectorUp surfaceNormal _location; _location set [2,0]; } else {