summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 354ad8298..4292017ca 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2027,6 +2027,17 @@ Whatever it returns is determined by type.
---------------------------------------
+*getnpcid(<type>)
+
+This function will return the GID of an NPC.
+Type can be:
+
+ 0 - The NPC that the running script is attached to.
+
+Useful for making an NPC perform an action using script commands that require a GID (e.g. unit*)
+
+---------------------------------------
+
*getarraysize(<array name>)
This function returns the number of values that are contained inside the