diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-23 19:14:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-23 19:14:55 +0300 |
commit | 73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547 (patch) | |
tree | 8e07ac831910ddeb844e6425221ad3d8b53fcafd /npc/functions/npcmove.txt | |
parent | 40f4c1b085e909f467fcf319e2cbb068c86e561c (diff) | |
download | serverdata-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.txt | 11 |
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; +} |