Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Untameable

juanosarg edited this page Jan 25, 2021 · 1 revision

CompUntameable makes a creature impossible to tame, even by using game exploits like forcing taming through dev mode. The comp will tick and detect if the animal belongs to the player's faction, and if so either make it go back to its original faction, go wild, or go manhunter.

    //A comp class to make animals not tameable. You can indicate what Faction to return them to.
   
    public string factionToReturnTo = "";

    //If true and factionToReturnTo not set, the creature will go manhunter if tamed

    public bool goesManhunter = true;

    //Optional message to send

    public bool sendMessage = false;
    public string message = "VEF_NotTameable";

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 makes the Insectoid Queen in Vanilla Faction Expanded - Insectoids not tameable

<comps>
	<li Class="AnimalBehaviours.CompProperties_Untameable">
		<factionToReturnTo>VFEI_Insect</factionToReturnTo>			
	</li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally