summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/npcmove.txt8
-rw-r--r--npc/test/npc4.txt1
2 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt
index 907c2098e..be2a20a95 100644
--- a/npc/functions/npcmove.txt
+++ b/npc/functions/npcmove.txt
@@ -74,6 +74,14 @@ function script domoveaction {
npcspeed getvariableofnpc(.movepathx[.@pos], strnpcinfo(3));
return 2;
}
+ else if (.@cmd$ == "sit")
+ {
+ npcsit;
+ }
+ else if (.@cmd$ == "stand")
+ {
+ npcstand;
+ }
return 1;
}
diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt
index ba96b356b..2461a6014 100644
--- a/npc/test/npc4.txt
+++ b/npc/test/npc4.txt
@@ -17,6 +17,7 @@ OnTimer1000:
end;
OnInit:
initpath "move", 20, 20,
+ "sit", 0, 0,
"dir", 6, 0,
"move", 25, 20,
"emote", 3, 0,