Fixed Gender - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

CompFixedGender makes an animal always spawn with a given gender, either Male or Female

    //This comp class makes an animal always spawn with a given gender

    public Gender gender = Gender.Female;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this allows Insectoid Queens in Vanilla Factions Expanded - Insectoids to always spawn as Female

<comps>		
	<li Class="AnimalBehaviours.CompProperties_FixedGender">
		<gender>Female</gender>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️