NPC (Command): Difference between revisions

From Jedi Knight Wiki | JKHub
(Created page with "category:Commands The NPC command has a number of parameters which effectively are separate NPC related commands. ===Spawn=== Spawn NPCs in front of the player us...")
 
No edit summary
Line 2: Line 2:
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"
{| class="wikitable"
Line 10: Line 10:


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====
===Spawn Vehicle===
Much the same as npc spawn, only to spawn a [[Vehicle|vehicle]]:
Much the same as npc spawn, only to spawn a [[Vehicle|vehicle]]:
{| class="wikitable"
{| class="wikitable"
Line 17: Line 17:
|}
|}


===Kill===
==Kill==
Kill all spawned NPCs (including vehicles)
Kill all spawned NPCs (including vehicles)
{| class="wikitable"
{| class="wikitable"

Revision as of 18:07, 23 February 2013

The NPC command has a number of parameters which effectively are separate NPC related commands.

Spawn

Spawn NPCs in front of the player using the following syntax:

npc spawn [npc type] [optional name to use for the npc]

The optional name is used to target the NPC with other commands and scripts.

Spawn Vehicle

Much the same as npc spawn, only to spawn a vehicle:

npc spawn vehicle [vehicle type] [optional name to use for the vehicle]

Kill

Kill all spawned NPCs (including vehicles)

npc kill all

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 or map, the player can kill the npc with a simple command:

npc kill [optional name specified at spawn]