Draftability - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

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>
⚠️ **GitHub.com Fallback** ⚠️