Page MenuHomeFeedback Tracker

Bug: You can't change the texture using script on zones that have been damaged
New, UrgentPublic

Description

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 );
	}
}

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

Jacob_Mango updated the task description. (Show Details)
Jacob_Mango renamed this task from You can't change the texture using script on zones that have been damaged to Bug: You can't change the texture using script on zones that have been damaged.
Jacob_Mango changed Severity from None to Feature.
Jacob_Mango changed Reproducibility from N/A to Always.

I found a workaround but it's time consuming and will break compatibility with other mods. We are going to use that hack fix for Expansion and break compatibility with other mods.