From b681deae9fdee3a219ddf43b76a553c57733f237 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Dec 2014 20:51:57 +0300 Subject: Add getnpcdir and setnpcdir functions. --- doc/script_commands.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc') 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 {}; + +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 {,} ; + +Set npc direction. If npc name missing, will be used attached npc. + +Example: + setnpcdir 2; + +--------------------------------------- + *day; *night; -- cgit v1.2.3-70-g09d2