Skip to content

Draftability

KylianB edited this page Oct 6, 2022 · 3 revisions

CompDraftable makes an animal draftable, it's that simple. They can be forced to move and attack. They can also be added to the CompDraftable list via a boolean

    //This comp class adds and removes animal to a static class, used to make draftable animals     

    //If true, adds animals to the non-fleeing mechanic too
    public bool makeNonFleeingToo = false;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the animal you want to be draftable. For example, this allows Awakened Clawer dryads to be drafted in VIE - Dryads

<comps>
	<li Class="AnimalBehaviours.CompProperties_Draftable">
		<makeNonFleeingToo>true</makeNonFleeingToo>
	</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