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.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index ada57d783..dc09256c5 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -5926,12 +5926,11 @@ and will return the following values:
---------------------------------------
*unitwalk <GID>,<x>,<y>;
-*unitwalk <GID>,<mapid>;
+*unitwalk <GID>,<target_GID>;
This is one command, but can be used in two ways. If only the first
argument is given, the unit whose GID is given will start walking towards
-the map with the given mapid (we believe these are the map-indexes found
-in db/map_index.txt).
+the target whose GID is given.
When 2 arguments are passed, the given unit will walk to the given x,y
coordinates on the map where the unit currently is.
@@ -5941,9 +5940,8 @@ Examples:
//Will move/walk the poring we made to the coordinates 150,150
unitwalk .GID,150,150;
-//Will move the poring towards alberta (if my assumed map-indexes are
-//correct).
- unitwalk .GID,3;
+//NPC will move towards the attached player.
+ unitwalk .GID,getcharid(3);//a player's GID is their account ID
---------------------------------------