diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/npcmove.txt | 8 | ||||
-rw-r--r-- | npc/test/npc4.txt | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt index 907c2098..be2a20a9 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 ba96b356..2461a601 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, |