Companion Invocation
Spawn and manage the player's companion
Felder
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
definition | Ref<out EntityDefinitionEntry> | — | — |
activity | Ref<out IndividualEntityActivityEntry> | — | — |
minDistance | Var<Double> | 2.0 | — |
maxDistance | Var<Double> | 4.0 | — |
Gemeinsame TypeWriter-Felder (children, criteria)
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
children | List<Ref<AudienceEntry>> | empty | — |
criteria | List<Criteria> | empty | — |
How to use it
Put this entry on a manifest page. Every player who passes criteria gets a companion based on definition; when they stop matching, it is removed.
definitionaccepts NPC definitions and ModelEngine definitions only.activityis optional. Without it, the companion simply idles and follows.minDistanceis the distance kept when the player stands still,maxDistancethe distance kept while the player moves.- One companion exists per definition and per player. To give a player two different companions, create two invocation entries with two definitions.