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

Initial Mental State

juanosarg edited this page Sep 8, 2022 · 1 revision

CompInitialMentalState makes an animal spawn with a defined mental state

    //A comp class that makes animals always spawn with a mental state

    public MentalStateDef mentalstate;

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 skeletons in Vanilla Psycasts Expanded start enraged (like manhunter but only against colony enemies)

<comps>
	<li Class="AnimalBehaviours.CompProperties_InitialMentalState">
		<mentalstate>VPE_Manhunter</mentalstate>
	</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