Skip to content

StaticModule: AnimateOnTrigger

Christian Bronk edited this page Nov 5, 2018 · 1 revision

This module plays a animation when a Vessel (Root Part) enters the specified Collider Objects. Up to three different Animations can be played.

  1. When Entering the Colliders.
  2. While staying within the Colliders.
  3. When the Root part exits the Colliders.

Best used when you only have one big convex mesh, where you remove the MeshRenderer component and define it as a trigger collider. It does not need to be a box collider.

MODULE
{
    // Mandatory, always the same
    namespace = KerbalKonstructs
    name = AnimateOnTrigger

    // Mandatory
    ColliderNames = , seperated List of Trigger colliders to use (or a single name)
    // Optional but define at least one
    AnimOnEnter = Animation name to play when vessel enters the collider
    AnimOnStay =  Animation name to play while vessel stay within the collider
    AnimOnExit =  Animation name to play when vessel exits the collider 
}