Jiggle Impulse
Description
Kick physics bones (jig bones), for example to make ears flinch when the mob is hit.
The model must be on the caster.
strength pushes the bones away from the target entity or location. x, y and z add a push in world directions.
Pushes are measured in blocks. Bones that are not jig bones are not affected.
Attributes
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| modelid | m, mid, model | Targeted model | String | |
| partid | p, pid, part | Targeted bone. If not set, kicks every jig bone |
String | |
| strength | s | How hard the bones are pushed away from the target | Float | 0 |
| x | Push along the world X axis | Float | 0 | |
| y | Push along the world Y axis | Float | 0 | |
| z | Push along the world Z axis | Float | 0 | |
| exactmatch | em, exact, match | Should the part match the partid completely |
Boolean | true |
Examples
Both ears flinch away from whoever hits the mob:
Skills:
- jiggleimpulse{p=ear;em=false;strength=0.3} @trigger ~onDamaged
Bounce the middle of a rope bridge upward:
Skills:
- jiggleimpulse{p=plank5;y=0.3} @self ~onDamaged