Skip to content
juanosarg edited this page May 3, 2021 · 2 revisions

CompBlink is a comp class that makes the animal "blink" uncontrollably between different positions. Note that this behaviour only happens if the animal is "wandering" or it would affect sleep, feeding and attacking, unless blinkWhenManhunter is set to true, in which case the animal will blink close to its target.

    public int blinkInterval = 500;
    public IntRange distance = new IntRange(5, 10);
    public bool warpEffect = false;
    public bool effectOnlyWhenManhunter = false;
    public bool blinkWhenManhunter = false;

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 an animal to blink 10 to 20 tiles away every 1000 ticks, and shows a warping effect every time it does

<comps>
	<li Class="AnimalBehaviours.CompProperties_Blink">
		<blinkInterval>1000</blinkInterval>
		<distance>10~20</distance>
		<warpEffect>true</warpEffect>

	</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