summaryrefslogtreecommitdiff
path: root/npc/functions/npcmove.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-23 19:14:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-23 19:14:55 +0300
commit73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547 (patch)
tree8e07ac831910ddeb844e6425221ad3d8b53fcafd /npc/functions/npcmove.txt
parent40f4c1b085e909f467fcf319e2cbb068c86e561c (diff)
downloadserverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.gz
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.bz2
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.tar.xz
serverdata-73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547.zip
Move timer logic for simple npcs to function.
Diffstat (limited to 'npc/functions/npcmove.txt')
-rw-r--r--npc/functions/npcmove.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt
index e8aa38aa..ab29dd35 100644
--- a/npc/functions/npcmove.txt
+++ b/npc/functions/npcmove.txt
@@ -129,3 +129,14 @@ function script getmovecmd {
return "";
return getvariableofnpc(.movepathcmd$[.@pos], strnpcinfo(3));
}
+
+function script domovestep {
+ if (isunitwalking())
+ {
+ initnpctimer;
+ end;
+ }
+ movetonextpos;
+ initnpctimer;
+ end;
+}