/npc spawn
Spawn NPCs
- Działa tylko wtedy, gdy komendę wykonuje gracz, a nie przez konsolę serwera.
Składnia
/npc spawn <role> [--bodyRotation=<value>] [--count=<value>] [--flags=<value>] [--flock=<value>] [--headRotation=<value>] [--posOffset=<value>] [--position=<value>] [--radius=<value>] [--scale=<value>] [--speed=<value>] [--bypassScaleLimits] [--facingRotation] [--frozen] [--nonrandom] [--randomModel] [--randomRotation] [--spawnOnGround] [--test]/npc spawn
- Polecenie głównenazwa polecenia, od której wszystko się zaczyna
- PodpoleceniePodpolecenie: kolejne słowo po poleceniu
- Wymaganewymagane, w ustalonej kolejności
- Opcjonalnieopcjonalne, w postaci --name=wert
- PrzełącznikPrzełącznik bez wartości
Argumenty
/npc spawn <role> [--bodyRotation=<value>] [--count=<value>] [--flags=<value>] [--flock=<value>] [--headRotation=<value>] [--posOffset=<value>] [--position=<value>] [--radius=<value>] [--scale=<value>] [--speed=<value>] [--bypassScaleLimits] [--facingRotation] [--frozen] [--nonrandom] [--randomModel] [--randomRotation] [--spawnOnGround] [--test]
Spawn NPCs
| Argument | Typ | Typ | Opis |
|---|---|---|---|
role | Wymagane | The NPC role to spawn | |
--bodyRotation | Opcjonalnie | Text Words, text, numbers, letters | Body rotation (yaw, pitch, roll) |
--count | Opcjonalnie | Integer A whole number | Number of NPCs to spawn |
--flags | Opcjonalnie | Text Words, text, numbers, letters | Debug flags (comma-separated) |
--flock | Opcjonalnie | Text Words, text, numbers, letters | A flock asset reference or integer value for defining flock size |
--headRotation | Opcjonalnie | Text Words, text, numbers, letters | Head rotation (yaw, pitch, roll) |
--posOffset | Opcjonalnie | Text Words, text, numbers, letters | The position offset from the spawn location |
--position | Opcjonalnie | Text Words, text, numbers, letters | Spawn position (x, y, z) |
--radius | Opcjonalnie | Double A decimal number | The spawn radius for multiple NPCs |
--scale | Opcjonalnie | Float A floating-point number | Model scale multiplier |
--speed | Opcjonalnie | Double A decimal number | The initial movement speed |
--bypassScaleLimits | Przełącznik | – | Bypass scale limits for the NPC |
--facingRotation | Przełącznik | – | Face the player when spawning |
--frozen | Przełącznik | – | Spawn the NPC frozen |
--nonrandom | Przełącznik | – | Use seeded random number generator for repeatable positions for benchmarking |
--randomModel | Przełącznik | – | Use a random player model |
--randomRotation | Przełącznik | – | Use random rotation when spawning |
--spawnOnGround | Przełącznik | – | Spawn the NPC on the ground |
--test | Przełącznik | – | Test whether the NPC can be spawned at this position |
/npc spawn
Show spawn menu page
To polecenie nie ma argumentów.
Uprawnienia
- Uprawnienie
hytale.npc.command.npc.spawn- Grupa domyślna
- WorldEditorz polecenia nadrzędnego
Grupy tworzą hierarchię: Adventurer, Builder, WorldEditor, ServerEditor, Admin. Wyższa grupa dziedziczy uprawnienia niższych; nowi gracze trafiają do grupy Adventurer, a administratorzy (OP) mogą robić wszystko.