wiki standardization authored by Lxlp's avatar Lxlp
[< Back to mechanic page](/Skills/Mechanics)
## Description
Lock or unlock the rotation of a modeled entity.
## Attributes
| Attribute | Aliases | Description | Type | Default |
|-----------|---------|---------------------------------|---------|---------|
| lock | l | Lock the rotation of the entity | Boolean | true |
## Examples
#### Lock rotation when attacking:
This will lock the entity's rotation when it attacks, so that
the attack doesn't drift, such as when the entity tries to look at the
player.
```yaml
Skills:
- skill{s=[
- cancelevent
- skill{s=[
- state{s=attack} @self
- lockmodel @self
- delay 5
- damage{a=2;type=ATTACK} @EIC{r=3;a=180;conditions=[ - isPlayer{} true ]}
- delay 10
- lockmodel{l=false} @self
];cooldown=1}
];sync=true} ~onAttack
```
## Aliases
- [x] LockRotation
\ No newline at end of file