Editing NPC (Command)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[category:Commands]] | |||
The NPC command has a number of parameters which effectively are separate [[NPC]] related commands. | The NPC command has a number of parameters which effectively are separate [[NPC]] related commands. | ||
==Spawn== | ===Spawn=== | ||
Spawn [[NPC]]s in front of the player using the following syntax: | Spawn [[NPC]]s in front of the player using the following syntax: | ||
{| class="wikitable" | |||
|- | |||
| npc spawn [npc type] [optional name to use for the npc] | |||
|} | |||
The optional name is used to target the NPC with other commands and [[Script|scripts]]. | The optional name is used to target the NPC with other commands and [[Script|scripts]]. | ||
====Spawn Vehicle==== | |||
Much the same as npc spawn, only to spawn a [[Vehicle|vehicle]]: | |||
{| class="wikitable" | |||
|- | |||
| npc spawn vehicle [vehicle type] [optional name to use for the vehicle] | |||
|} | |||
=== | ===Kill=== | ||
Kill all spawned NPCs (including vehicles) | |||
{| class="wikitable" | |||
|- | |||
| npc kill all | |||
|} | |||
Kill all spawned NPCs (including vehicles) | |||
If the player decides to name an npc (or vehicle) by adding the optional name field, or the NPC was given a name by a [[Script|script]] or [[Map|map]], the player can kill the npc with a simple command: | If the player decides to name an npc (or vehicle) by adding the optional name field, or the NPC was given a name by a [[Script|script]] or [[Map|map]], the player can kill the npc with a simple command: | ||
{| class="wikitable" | |||
|- | |||
| npc kill [optional name specified at spawn] | |||
|} | |||