Issue visualised:
Example code:
void ExpansionOnSkinDamageZoneUpdateClient( ExpansionSkinDamageZone zone, int level ) { int selectionIndex = GetHiddenSelectionIndex( zone.HiddenSelection ); if ( level >= 0 && level < zone.HealthLevels.Count() ) { Message( GetPlayer(), "zone " + zone.Zone + " level " + level ); Message( GetPlayer(), "selectionName " + zone.HiddenSelection + " selectionIndex " + selectionIndex ); Message( GetPlayer(), "RVTexture " + zone.HealthLevels[level].RVTexture + " RVMaterial " + zone.HealthLevels[level].RVMaterial ); SetObjectTexture( selectionIndex, zone.HealthLevels[level].RVTexture ); SetObjectMaterial( selectionIndex, zone.HealthLevels[level].RVMaterial ); } }