Skip to content

Cause Incident

juanosarg edited this page Aug 8, 2021 · 1 revision

CompCauseIncident triggers an ingame incident every X ticks. The type of incident can be configured and can be a modded or vanilla one.

    public int checkingInterval = 450000;
    public bool requiresTamed = false;
    public string incidentToCause;

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 the Aurora Sylph in Alpha Animals to cause an Aurora every two weeks, only when tamed

<comps>
	<li Class="AnimalBehaviours.CompProperties_CauseIncident">				
		<checkingInterval>450000</checkingInterval>
		<requiresTamed>true</requiresTamed>
		<incidentToCause>Aurora</incidentToCause>
	</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