diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-29 16:34:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-29 16:34:13 +0300 |
commit | e5f25d11eee43a31b2c41b357ac144d9e40ef37a (patch) | |
tree | d938c7f68e0beda740e3b26c38887374c34664db /src/map/script.c | |
parent | 8867d978d868f6856cf0dd9eccbe1022c2814856 (diff) | |
download | evol-hercules-e5f25d11eee43a31b2c41b357ac144d9e40ef37a.tar.gz evol-hercules-e5f25d11eee43a31b2c41b357ac144d9e40ef37a.tar.bz2 evol-hercules-e5f25d11eee43a31b2c41b357ac144d9e40ef37a.tar.xz evol-hercules-e5f25d11eee43a31b2c41b357ac144d9e40ef37a.zip |
Add script command for move camera to absolute pixel position.
New script command: setcam x,y
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 8b63dd4..d71cc82 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -74,6 +74,14 @@ BUILDIN(setCamNpc) return true; } +BUILDIN(setCam) +{ + send_npccommand2(script->rid2sd (st), st->oid, 2, 0, + script_getnum(st, 2), script_getnum(st, 3)); + + return true; +} + BUILDIN(restoreCam) { getSD(); |