Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine 4 Model Engine 4
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 111
    • Issues 111
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model Engine 4Model Engine 4
  • Wiki
    • Api
    • Basic
  • Play Stop Animation

Play Stop Animation · Changes

Page history
Replace placeholder with java authored Sep 29, 2023 by Ticxo's avatar Ticxo
Show whitespace changes
Inline Side-by-side
Showing with 4 additions and 4 deletions
+4 -4
  • API/Basic/Play-Stop-Animation.md API/Basic/Play-Stop-Animation.md +4 -4
  • No files found.
API/Basic/Play-Stop-Animation.md
View page @ a0a02798
## Playing an animation
```<placeholder>
```java
// Get a hold of the ActiveModel you want to modify
ActiveModel model = ...
// Get the model's AnimationHandler
......@@ -9,7 +9,7 @@ handler.playAnimation("attack", 0.3, 0.3, 1, true);
```
## Stopping an animation with transition
```<placeholder>
```java
ActiveModel model = ...
AnimationHandler handler = model.getAnimationHandler();
// Stop an animation. The model will transition out of the animation smoothly
......@@ -17,7 +17,7 @@ handler.stopAnimation("eating");
```
## Stopping an animation immediately
```<placeholder>
```java
ActiveModel model = ...
AnimationHandler handler = model.getAnimationHandler();
// Stop an animation. The model will snap right out of the animation
......@@ -25,7 +25,7 @@ handler.forceStopAnimation("eating");
```
## Using specific animation handler method
```<placeholder>
```java
ActiveModel model = ...
AnimationHandler handler = model.getAnimationHandler();
if(handler instanceof IStateMachineHandler stateMachineHandler) {
......
Clone repository
Home
FAQ / Common Issues
Commands & Permissions
Configuration
Modeling
  • Creating a Model
    • Hitbox & Eye Height
    • Shadow
  • Bone Behaviors
  • Animating a Model
  • Importing a Model
  • Scriptable Keyframes
MythicMobs
  • Mechanics: Model
  • Mechanics: VFX
  • Conditions
  • Targeters
API
  • Basic
    • Apply / Remove Model
    • Play / Stop Animation
    • Configure Bone Behaviors
    • Per-Player Model
    • Events
  • Advanced
    • Custom Base Entity
    • Custom Mount Controller
    • Custom Importer
    • Custom Bone Behaviors
    • Custom Script Reader
    • Custom Timeline
    • Custom Animation Handler
    • Custom Render Type
Technical
  • Terminology
  • Animation Systems
  • Mount Controllers