• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Dynamic change trader portrait in SRHudKillingFloor

Hi. I want change TraderPortrait.

tryed this steps
Code:
class ReplaceTraderMut extends Mutator;
function PreBeginPlay() or PostBeginPlay()
{
	class'SRHUDKillingFloor'.default.TraderPortrait = Portrait;
	class<SRHUDKillingFloor>(DynamicLoadObject("UnitedMut_v42.SRHUDKillingFloor", class'SRHUDKillingFloor')).default.TraderPortrait = Portrait;	
	foreach DynamicActors(class'KFPlayerController',KFPC)
	{
		SRHUDKillingFloor(KFPC.myhud).TraderPortrait = Portrait;
	}
	settimer(1.0,true);
}

function Timer()
{
	foreach DynamicActors(class'KFPlayerController',KFPC)
	{
		SRHUDKillingFloor(KFPC.myhud).TraderPortrait = Portrait;
	}
}

all this not work (( how to change TraiderPortrait Dynamically