Editing NPC (Command)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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"
<code>npc spawn [npc type] [optional name to use for the npc]</code>
|-
| 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===
===Spawn Vehicle===
Much the same as npc spawn, only to spawn a [[vehicle]]:
Much the same as npc spawn, only to spawn a [[Vehicle|vehicle]]:
 
{| class="wikitable"
<code>npc spawn vehicle [vehicle type] [optional name to use for the vehicle]</code>
|-
| npc spawn vehicle [vehicle type] [optional name to use for the vehicle]
|}


==Kill==
==Kill==
Kill all spawned NPCs (including vehicles):
Kill all spawned NPCs (including vehicles)
 
{| class="wikitable"
<code>npc kill all</code>
|-
| 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|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"
<code>npc kill [optional name specified at spawn]</code>
|-
| npc kill [optional name specified at spawn]
|}


==Showbounds==
==Showbounds==
Line 27: Line 35:
==Score==
==Score==
Prints the score that each NPC in the world has. You can optionally specify an NPC that was given a script_targetname.
Prints the score that each NPC in the world has. You can optionally specify an NPC that was given a script_targetname.
[[Category:Commands]]
Please note that all contributions to Jedi Knight Wiki | JKHub are considered to be released under the Public Domain (see JKHub:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)