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
    • Technical
  • Mount Controllers

Mount Controllers · Changes

Page history
Controller authored Oct 16, 2023 by Ticxo's avatar Ticxo
Hide whitespace changes
Inline Side-by-side
Showing with 26 additions and 1 deletion
+26 -1
  • Technical/Mount-Controllers.md Technical/Mount-Controllers.md +26 -1
  • No files found.
Technical/Mount-Controllers.md
View page @ 992aac9f
...@@ -38,4 +38,29 @@ Like `flying`, but the mounted player is not able to dismount on its own ...@@ -38,4 +38,29 @@ Like `flying`, but the mounted player is not able to dismount on its own
## ##
## Meta Controllers ## Meta Controllers
\ No newline at end of file
Named after [Metaskills](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Metaskills), meta controller is a
special type mount controllers unique to MythicMobs. It allows users to create custom mount controller with the use of
skill configs.
Meta controllers are called each tick, and every call has special
skill-scoped [variables](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Variables) that contains
entity-specific data such as WASD inputs, speed, velocity etc. To obtain these values, use `skill.meg:[variable_name]`.
To use them as placeholders, use `<skill.var.meg:[variable_name]>`. Here is a list of variables:
| Variable | Description | Type |
|-----------|--------------------------------------------------------------------------------------------------------------------------|---------|
| rider | Is the controller running is `driver` or `passenger` | String |
| front | Front and back input.<br>Positive number = front (W), negative number = back (S)<br>These values are not exactly 1 or -1 | Float |
| side | Left and right input.<br>Positive number = left (A), negative number = right (D)<br>These values are not exactly 1 or -1 | Float |
| jump | Is the rider jumping (space bar). 1 = true, 0 = false | Integer |
| sneak | Is the rider sneaking (shift). 1 = true, 0 = false | Integer |
| on_ground | Is the entity on ground. 1 = true, 0 = false | Integer |
| speed | Value of the movement speed attribute of the entity | Float |
| vx | X component of the entity's velocity | Float |
| vy | Y component of the entity's velocity | Float |
| vz | Z component of the entity's velocity | Float |
Model Engine also provides a few accessor mechanics that allows users to interact with the movement controller of
entities directly. You can check out the [Controller](MythicMobs/Model-Mechanics#controller) section of our mechanics page.
\ 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: Model
  • Mechanics: VFX
  • Conditions
  • Targeters
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