diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-06 20:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-16 22:42:30 +0300 |
commit | b681deae9fdee3a219ddf43b76a553c57733f237 (patch) | |
tree | 3f10a001e6c992cd37a864a37589134149563032 /doc | |
parent | 4ae220311093cb344a27052ebc90358748435be6 (diff) | |
download | hercules-b681deae9fdee3a219ddf43b76a553c57733f237.tar.gz hercules-b681deae9fdee3a219ddf43b76a553c57733f237.tar.bz2 hercules-b681deae9fdee3a219ddf43b76a553c57733f237.tar.xz hercules-b681deae9fdee3a219ddf43b76a553c57733f237.zip |
Add getnpcdir and setnpcdir functions.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 36b52988b..642b67fe3 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -7569,6 +7569,25 @@ Usefull to use from OnInit event. --------------------------------------- +*getnpcdir {<name>}; + +Return current npc direction for parameter "name" or for attached npc +if it missing. If name missing and not attached npc, return -1. + +Example: + .@dir = getnpcdir(); + +--------------------------------------- + +*setnpcdir {<name>,} <direction>; + +Set npc direction. If npc name missing, will be used attached npc. + +Example: + setnpcdir 2; + +--------------------------------------- + *day; *night; |