Cause Incident - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

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