Page 1 of 1

Player outfit problem

Posted: Thu Feb 04, 2021 4:31 pm
by Astolfo
I have a script that changes the player's clothing, but it is not suitable for the female gender.

Code: Select all

public void h(TriggerArgs args)
{
	if (args.Sender is IPlayer) 
	{
		IPlayer plr = (IPlayer)args.Sender;
		IProfile profile = plr.GetProfile();
		profile.ChestUnder = new IProfileClothingItem("Shirt", "ClothingWhite");
		profile.ChestOver = new IProfileClothingItem("Coat", "ClothingWhite", "ClothingDarkRed");
		profile.Legs = new IProfileClothingItem("Pants", "ClothingWhite");
		profile.Feet = new IProfileClothingItem("Shoes", "ClothingWhite");
		plr.SetProfile(profile);
	}
}

Re: Player outfit problem

Posted: Thu Mar 18, 2021 6:45 pm
by Gurt
Female items are often named with the suffix "_fem". You can see this in the Data/Items folder within the game's content.