From f7577de09a2fd0a93a160971cee209aa7de27016 Mon Sep 17 00:00:00 2001 From: tbox1911 Date: Wed, 14 Aug 2024 23:52:55 +0200 Subject: [PATCH] follow best advice --- .../addons/VAM/vehicles/fnc_VAM_common_camo.sqf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core.liberation/addons/VAM/vehicles/fnc_VAM_common_camo.sqf b/core.liberation/addons/VAM/vehicles/fnc_VAM_common_camo.sqf index 2baa96592..729135c45 100644 --- a/core.liberation/addons/VAM/vehicles/fnc_VAM_common_camo.sqf +++ b/core.liberation/addons/VAM/vehicles/fnc_VAM_common_camo.sqf @@ -65,10 +65,14 @@ if ([_selected_camo_class_name, [".#", "./", "LRX_Texture"]] call F_startsWithMu case (_vehicle isKindOf "LSV_01_base_F"): { [0,2] }; case (_vehicle isKindOf "LSV_02_base_F"): { [0,2] }; - default { [0] }; + default { [0] }; }; - { _vehicle setObjectTextureGlobal [_x, _camo_class_name] } forEach _selections; + { + _vehicle setObjectMaterialGlobal [_x, "\a3\data_f\default.rvmat"]; + sleep 0.1; + _vehicle setObjectTextureGlobal [_x, _camo_class_name]; + } forEach _selections; } else { [_vehicle,[_selected_camo_class_name,1],nil,nil] spawn BIS_fnc_initVehicle; };