NPC (Command)

From Jedi Knight Wiki | JKHub
(Redirected from Npc spawn)

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

Spawn[edit]

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[edit]

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

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

Kill[edit]

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]

Showbounds[edit]

Toggles bounding boxes of all NPCs.

Score[edit]

Prints the score that each NPC in the world has. You can optionally specify an NPC that was given a script_targetname.