From 0643ca6fd96b14be8878aed8bcdcc2a07c56ef05 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:44:47 +0200 Subject: [PATCH] Repair - Improve some locations for interaction anims (#10224) Improve some locations for interaction anims --- addons/repair/CfgVehicles.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);