summaryrefslogtreecommitdiff
path: root/npc/functions/npcmove.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/npcmove.txt')
-rw-r--r--npc/functions/npcmove.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt
index 346549fc3..907c2098e 100644
--- a/npc/functions/npcmove.txt
+++ b/npc/functions/npcmove.txt
@@ -69,6 +69,11 @@ function script domoveaction {
getmapxy(.@mapName$, .@x, .@y, 1);
npcwalkto .@x + getvariableofnpc(.movepathx[.@pos], strnpcinfo(3)), .@y + getvariableofnpc(.movepathy[.@pos], strnpcinfo(3));
}
+ else if (.@cmd$ == "speed")
+ {
+ npcspeed getvariableofnpc(.movepathx[.@pos], strnpcinfo(3));
+ return 2;
+ }
return 1;
}