From 73ccd23e1ff25cb1194cde9fa5789e6a8f9ed547 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Oct 2015 19:14:55 +0300 Subject: Move timer logic for simple npcs to function. --- npc/test/npc4.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'npc/test') diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt index 09f85bb7..a3acdd0e 100644 --- a/npc/test/npc4.txt +++ b/npc/test/npc4.txt @@ -7,14 +7,7 @@ test,25,20,0 script npc4 NPC_PLAYER,{ close; OnTimer1000: - if (isunitwalking()) - { - initnpctimer; - end; - } - movetonextpos; - initnpctimer; - end; + domovestep; OnInit: .walkmask = WALK_WATER; initpath "move", 20, 20, -- cgit v1.2.3-70-g09d2