From e5534b4202c5b68d6b0fd0e2f01fae073aa7c8e7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 May 2015 19:22:31 +0300 Subject: Add functions and example npc for simple npc moving program. For now npc AI support moving, changing direction, waiting. --- npc/test/npc4.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 npc/test/npc4.txt (limited to 'npc/test/npc4.txt') diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt new file mode 100644 index 00000000..78103667 --- /dev/null +++ b/npc/test/npc4.txt @@ -0,0 +1,26 @@ +// Evol scripts. +// Authors: +// 4144 +// Description: +// test npc4 + +test,25,20,0 script npc4 801,{ + close; +OnTimer1000: + if (isunitwalking()) + { + initnpctimer; + end; + } + movetonextpos; + initnpctimer; + end; +OnInit: + initpath "move", 20, 20, + "dir", 6, 0, + "move", 25, 20, + "wait", 3, 0, + "move", 22, 10; + initialmove; + initnpctimer; +} -- cgit v1.2.3-60-g2f50