Companion Follow Mode
Toggle companion follow or wait mode
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
definition | Ref<out EntityDefinitionEntry> | — | — |
minDistance | Var<Double> | 2.0 | — |
maxDistance | Var<Double> | 4.0 | — |
Общие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Each run flips the companion between following and waiting. It does not set an explicit state, so run it once to make the companion wait and again to resume.
- With
definitionset, only the companion made from that definition is toggled. - With
definitionempty, all of the player's companions are toggled. minDistanceandmaxDistanceare written to the companion each time the action runs.- If the player has no companion for that definition, nothing happens.