Skip to content

Fixed Gender

juanosarg edited this page Jan 25, 2021 · 1 revision

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>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Genes

Apparel

Cuisine

Furniture

Plants

Deprecated

Clone this wiki locally