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
    • Conditions
  • ModelHasDriver

ModelHasDriver · Changes

Page history
wiki standardization authored Oct 21, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 0 additions and 0 deletions
+0 -0
  • Skills/Conditions/ModelHasDriver.md Skills/Conditions/ModelHasDriver.md +0 -0
  • No files found.
Skills/Conditions/ModelHasDriver.md 0 → 100644
View page @ 058ef9f7
## Description
Checks if the target modeled entity has a driver
## Attributes
>*This condition has no attributes*
## Examples
The following setup will allow you to execute skills both when an entity mounts a modeled entity as a driver and when it dismounts.
Essentially, this doubles as a makeshift "onMount" and "onDismount" triggers.
It being a simple skill, it has, of course, its limitations (if the action occurs multiple times in the time span between activations, it will not fire correctly), but even considering that, this should be of great use
```yaml
# MOB CONFIG
ExampleMob:
Type: DROWNED
Skills:
- model{mid=your_model} @self ~onSpawn
- skill:MountEventManager @self ~onTimer:5
```
```yaml
# SKILL CONFIG
MountEventManager:
Conditions:
- modelhasdriver true
Skills:
- aura{
auraName=MountEventManager;
d=6;
onStart=MountEventManager_MountEvent;
onEnd=MountEventManager_DismountEvent
} @self
MountEventManager_MountEvent:
Skills:
- message{m="you mounted the entity"}
MountEventManager_DismountEvent:
Skills:
- message{m="you dismounted the entity"}
```
## Aliases
- [x] modeldriver
\ 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