Head Target
Description
Make head bones look at the target entity or location instead of where the entity is looking. The model must be on the caster. The head's turn limits and turn speed still apply (see HeadConfig).
An entity target is followed until it is removed or the target is cleared. The target is saved with the model.
Attributes
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| modelid | m, mid, model | Targeted model | String | |
| partid | p, pid, part | Targeted head bone. If not set, targets every head bone |
String | |
| yoffset | y, yo | Vertical offset added to the target position | Float | 0 |
| follow | f | Keep following a moving entity target. With false the head looks at the spot the entity is at |
Boolean | true |
| clear | c | Remove the target, so the head follows the entity's look again | Boolean | false |
| exactmatch | em, exact, match | Should the part match the partid completely |
Boolean | true |
Examples
Look at the nearest player's eyes:
Skills:
- headtarget{p=head;y=1.6} @NearestPlayer{r=12} ~onTimer:10
Stop staring:
Skills:
- headtarget{p=head;clear=true} @self