From b030fc49ddf6128da6346a3a0bfbf811bbc64a02 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Sun, 7 Feb 2021 20:37:13 +0100 Subject: [PATCH] Update snapping function Switch from createVehicleLocal to createVehicle to prevent an unexpected snapping behavior. This also stops the client rpt spam. Thx @ndavalos --- SQF/dayz_code/compile/snap_functions.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/snap_functions.sqf b/SQF/dayz_code/compile/snap_functions.sqf index bef124c46..b795cfa3c 100644 --- a/SQF/dayz_code/compile/snap_functions.sqf +++ b/SQF/dayz_code/compile/snap_functions.sqf @@ -52,7 +52,7 @@ fnc_initSnapPoints = { snapGizmos = []; { - _objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicleLocal [0,0,0]; + _objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicle [0,0,0]; _objectSnapGizmo setobjecttexture [0,"#(argb,8,8,3)color(0.04,0.84,0.92,0.3,ca)"]; _objectSnapGizmo attachTo [_object,[_x select 0,_x select 1,_x select 2]]; snapGizmos set [count snapGizmos,_objectSnapGizmo]; @@ -76,7 +76,7 @@ fnc_initSnapPointsNearby = { _pointsNearby = getArray (configFile >> "SnapBuilding" >> (typeOf _x) >> "points"); { - _objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicleLocal [0,0,0]; + _objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicle [0,0,0]; _objectSnapGizmo setobjecttexture [0,"#(argb,8,8,3)color(0.04,0.84,0.92,0.3,ca)"]; _objectSnapGizmo setDir (_nearbyObject getVariable["memDir",0]); _posNearby = _nearbyObject modelToWorld [_x select 0,_x select 1,_x select 2];