summaryrefslogtreecommitdiff
path: root/npc/functions/timer.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/timer.txt')
-rw-r--r--npc/functions/timer.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/timer.txt b/npc/functions/timer.txt
index 17a7d4b68..5d7466d0f 100644
--- a/npc/functions/timer.txt
+++ b/npc/functions/timer.txt
@@ -29,6 +29,13 @@ function script areatimer2 {
return .@i;
}
+// addtimer2(<tick>, "<npc>::<event>")
+function script addtimer2 {
+ deltimer(getarg(1));
+ addtimer(getarg(0), getarg(1));
+ return .@i;
+}
+
// maptimer("<map>", <tick>, "<npc>::<event>")
function script maptimer {