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
Inherited Members
Extension Methods

Fields

DefaultAnim

Is this animation the default animation for the entity?

[JsonProperty]
public bool DefaultAnim

Field Value

bool

MatchExact

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

OnControls

An array of controls that should begin the animation.

[JsonProperty]
public EnumEntityActivity[] OnControls

Field Value

EnumEntityActivity[]

Methods

Clone()

public AnimationTrigger Clone()

Returns

AnimationTrigger