diff --git a/addons/repair/CfgVehicles.hpp b/addons/repair/CfgVehicles.hpp index 6172b72679..011a038f91 100644 --- a/addons/repair/CfgVehicles.hpp +++ b/addons/repair/CfgVehicles.hpp @@ -434,7 +434,8 @@ class CfgVehicles { class EGVAR(interaction,anims) { class showTracks { phase = 0; - positions[] = {{-1.7, -3.875, -0.7}, {1.7, -3.875, -0.7}}; + selections[] = {"vhc_tracks"}; + positions[] = {"private _pos = _target selectionPosition 'vhc_tracks'; _pos set [0, -(_pos select 0)]; _pos"}; // Mirror position to other side of vehicle items[] = {"ACE_Track", "ACE_Track", "ACE_Track"}; name = CSTRING(RemoveTrack); text = CSTRING(RemovingTrack); @@ -448,7 +449,7 @@ class CfgVehicles { class Offroad_02_base_F: Car_F { class EGVAR(interaction,anims) { class hideSpareWheel { - selections[] = {"spare_wheel"}; + positions[] = {"_target selectionPosition ['spare_wheel', 'ViewGeometry', 'AveragePoint']"}; items[] = {"ACE_Wheel"}; name = CSTRING(RemoveWheel); text = CSTRING(RemovingWheel); @@ -505,7 +506,7 @@ class CfgVehicles { class Van_02_base_F: Truck_F { class EGVAR(interaction,anims) { class spare_tyre_hide { - positions[] = {"[[-1.2, -3.7, -0.4], [-0.45, -3.5, -0.4]] select (_target animationPhase 'Door_4_source' == 0)"}; + positions[] = {"_target selectionPosition ['spare_tyre', 'ViewGeometry', 'AveragePoint']"}; items[] = {"ACE_Wheel"}; name = CSTRING(RemoveWheel); text = CSTRING(RemovingWheel);