/npc spawn
Spawn NPCs
- Fonctionne uniquement lorsqu’un joueur exécute la commande, pas depuis la console du serveur.
Syntaxes
/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
- Commande principalele nom de la commande, par lequel tout commence
- Sous-commandeSous-commande : un autre mot après la commande
- Obligatoireobligatoire, dans un ordre fixe
- Facultatiffacultatif, avec --name=wert
- CommutateurCommutateur sans valeur
Arguments
/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 | Type | Type | Description |
|---|---|---|---|
role | Obligatoire | The NPC role to spawn | |
--bodyRotation | Facultatif | Text Words, text, numbers, letters | Body rotation (yaw, pitch, roll) |
--count | Facultatif | Integer A whole number | Number of NPCs to spawn |
--flags | Facultatif | Text Words, text, numbers, letters | Debug flags (comma-separated) |
--flock | Facultatif | Text Words, text, numbers, letters | A flock asset reference or integer value for defining flock size |
--headRotation | Facultatif | Text Words, text, numbers, letters | Head rotation (yaw, pitch, roll) |
--posOffset | Facultatif | Text Words, text, numbers, letters | The position offset from the spawn location |
--position | Facultatif | Text Words, text, numbers, letters | Spawn position (x, y, z) |
--radius | Facultatif | Double A decimal number | The spawn radius for multiple NPCs |
--scale | Facultatif | Float A floating-point number | Model scale multiplier |
--speed | Facultatif | Double A decimal number | The initial movement speed |
--bypassScaleLimits | Commutateur | – | Bypass scale limits for the NPC |
--facingRotation | Commutateur | – | Face the player when spawning |
--frozen | Commutateur | – | Spawn the NPC frozen |
--nonrandom | Commutateur | – | Use seeded random number generator for repeatable positions for benchmarking |
--randomModel | Commutateur | – | Use a random player model |
--randomRotation | Commutateur | – | Use random rotation when spawning |
--spawnOnGround | Commutateur | – | Spawn the NPC on the ground |
--test | Commutateur | – | Test whether the NPC can be spawned at this position |
/npc spawn
Show spawn menu page
Cette commande n’a pas d’arguments.
Autorisations
- Autorisation
hytale.npc.command.npc.spawn- Groupe par défaut
- WorldEditorde la commande parente
Les groupes sont hiérarchisés : Adventurer, Builder, WorldEditor, ServerEditor, Admin. Chaque groupe supérieur hérite des permissions des groupes inférieurs ; les nouveaux joueurs sont Adventurer, et les admins (OP) peuvent tout faire.