Table of Contents

Class AnimationTrigger

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Data about when an animation should be triggered.

public class AnimationTrigger
Inheritance
AnimationTrigger

Fields

OnControls (Recommended)

An array of controls that should begin the animation.

[JsonProperty]
public EnumEntityActivity[] OnControls

Field Value

EnumEntityActivity[]

DefaultAnim (Optional) (Default: false)

Is this animation the default animation for the entity?

[JsonProperty]
public bool DefaultAnim

Field Value

bool

MatchExact (Optional) (Default: false)

If set to true, all OnControls elements need to be happening simultaneously to trigger the animation. If set to false, at least one OnControls element needs to be happening to trigger the animation. Defaults to false.

[JsonProperty]
public bool MatchExact

Field Value

bool