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
    • Skills
    • Mechanics
  • ModifyState

ModifyState · Changes

Page history
wiki standardization authored Oct 21, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 1 addition and 1 deletion
+1 -1
  • Skills/Mechanics/ModifyState.md Skills/Mechanics/ModifyState.md +1 -1
  • No files found.
Skills/Mechanics/ModifyState.md 0 → 100644
View page @ 058ef9f7
[< Back to mechanic page](/Skills/Mechanics)
## Description
Modify an animation played by the targeted active model.
This mechanic can change the lerp in time, lerp out time, speed, loop mode and override mode of an animation.
## Attributes
| Attribute | Aliases | Description | Type | Default |
|-----------|---------------|---------------------------------------------------------------------------------------------|-----------|------------|
| modelid | m, mid, model | Targeted model | String | |
| state | s | Targeted state | String | |
| priority | p, pr | Priority of the animation<br>This is only read when model is using the new animation system | Integer | 1 |
| speed | sp | New speed of the animation | Double | Last Value |
| lerpin | li | New lerp in of the animation | Double | Last Value |
| lerpout | lo | New lerp out of the animation | Double | Last Value |
| loop | l | New loop mode of the animation | Loop Mode | Last Value |
| override | ov | New override mode of the animation | Boolean | Last Value |
### Loop Attribute
This attribute type has 4 possible values, as described below:
| Value | Description |
|-------|--------------------------------------------------------------------------------------|
| ONCE | Cause the animation to only play once and exit the animation when it reaches the end |
| LOOP | Cause the animation to loop repeatedly until the animation is removed |
| HOLD | Cause the animation to hold on the last frame until the animation is removed |
| RESET | Reset the loop mode back to the value configured within the BBModel |
## Examples
#### Pause an animation:
This will effectively pause an animation, creating a "frozen in time" effect.
```yaml
Skills:
# Play an animation
- state{mid=fire_elemental;s=attack} @self
# Delay 1 second
- delay 20
# Stop the animation by setting speed to 0
- modstate{mid=fire_elemental;s=attack;sp=0} @self
```
## Aliases
- [x] modifyanimation
- [x] modstate
\ No newline at end of file
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
  • Optional Tools
MythicMobs
  • Mechanics
  • Conditions
  • Targeters
Citizens (R4.0.4)
  • Trait
  • Commands & Permissions

API
  • Basic
    • Apply / Remove Model
    • Play / Stop Animation
    • Configure Bone Behaviors
    • Mounting / Dismounting Model
    • 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
Promotional Material