|
|
[< Back to mechanic page](/Skills/Mechanics)
|
|
|
|
|
|
## Description
|
|
|
Dismount driver or specific passengers riding on list of mount bones.
|
|
|
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Type | Default |
|
|
|
|-----------|----------|-----------------------------------------------------------------------------------------|---------|---------|
|
|
|
| driver | d, drive | Is dismounting driver.<br/>If true, this will dismount the driver regardless of target. | Boolean | true |
|
|
|
|
|
|
#### When driver = false
|
|
|
|
|
|
| Attribute | Aliases | Description | Type | Default |
|
|
|
|-----------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------|
|
|
|
| modelid | m, mid, model | Targeted model | String | |
|
|
|
| seat | p, pbone | Targeted mount bones (e.g. bone1,bone2,bone3).<br/>If not set, this will just dismount the target from the model.<br/>Otherwise, it will only dismount the target if they are riding on one of the specified bones | String List | |
|
|
|
|
|
|
# Examples
|
|
|
This example would mount a player to a specific bone when they right click, and dismount the rider when the mob takes damage
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- model{m=elk;usm=true;drive=true;ride=true;n=nametag} @self ~onSpawn
|
|
|
- mountmodel{mid=elk;d=false;p=seat2} @trigger ~onInteract
|
|
|
# Dismount when the mob takes damage
|
|
|
- dismountmodel{m=elk;p=seat2} @self ~onDamaged
|
|
|
``` |
|
|
\ No newline at end of file |