Skip to content

GitLab

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

Targeters · Changes

Page history
Create Targeters authored Nov 26, 2022 by Ticxo's avatar Ticxo
Show whitespace changes
Inline Side-by-side
Showing with 48 additions and 0 deletions
+48 -0
  • Targeters.md Targeters.md +48 -0
  • No files found.
Targeters.md 0 → 100644
View page @ 286c3e95
## ModelPart
Target the locations of parts.
| Attribute | Aliases | Description | Default |
|------------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| modelid | m, mid, model | The targeted model | |
| partid | p, pid, part | The targeted part | |
| offset | o, off | Offset mode used to calculate the offsets<br>LOCAL: Local axis of the targeted part<br>MODEL: Local axis of the target model<br>GLOBAL: World axis | LOCAL |
| x | | Offset on X axis | 0 |
| y | | Offset on Y axis | 0 |
| z | | Offset on Z axis | 0 |
| exactmatch | em, exact, match | Does the part need to match the partid completely<br>If set to false, this will get the location of all parts with IDs containing partid<br>Example: pid=arm;em=false<br>This will tint both leftarm and rightarm | true |
### Local vs Model vs Global
The usage of these 3 modes is a bit hazy, so we will explain them one by one.
> Note: Depending on how you made your model, each axis might not represent the same direction as stated here.
> In this scenario, Z-axis is forward/backward, X-axis is right/left, and Y-axis is up/down.
#### Local
This mode would get the offset based on the bone's rotation.
Let's say we have a humanoid model who holds a gun. To get where the barrel is pointing at, we can use this mode with a positive Z offset.
#### Model
This mode would get the offset based on the model's rotation.
Essentially, this is the `Forward` targeter from MythicMobs, with the added benefit of starting from the location of the selected bone.
#### Global
This mode just uses Minecraft's world axis to calculate the offset.
Same as `Model` mode, this just has the benefit of starting from the selected bone, instead of the base of the mob.
***
## MountedModel
Get the model mounted by the caster.
| Attribute | Aliases | Description| Default |
|------------|---------------|------------|---------|
***
## ModelDriver
Get the driver of this model.
| Attribute | Aliases | Description| Default |
|------------|---------------|------------|---------|
***
## ModelPassengers
Tell the model to start or stop playing an animation.
| Attribute | Aliases | Description | Default |
|------------|---------------|------------------------------------------------------------------|----------------|
| pbone | p | A list of seats to search.<br>Format: pbone=seat1,seat2,seat3 | All passengers |
***
\ No newline at end of file
Clone repository
  • Animating your model
  • Comparison: ItemsAdder
  • Conditions
  • Home
  • Importing and Exporting
  • Limitations
  • Making your first model
  • Mechanics: Model
  • Mechanics: VFX
  • MoLang support
  • R3 Changes and Features
  • Recommended Tool
  • Scriptable Keyframes
  • Targeters
  • The Survival Guide to Mojank's World of Madness
View All Pages