Skip to content

Commit

Permalink
follow best advice
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed Aug 14, 2024
1 parent a19219a commit f7577de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core.liberation/addons/VAM/vehicles/fnc_VAM_common_camo.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit f7577de

Please sign in to comment.