Page 1 of 1

How to get player / npc heading?

Posted: Tue Aug 07, 2012 1:53 pm
by DreamStage
Hello, when i want to add some spawn, i have difficulty to get the heading i want. Is there any admin command to check for my heading number? Like //heading? In game ofc.

Re: How to get player / npc heading?

Posted: Tue Aug 07, 2012 1:58 pm
by jurchiks
The NPCs spawned via //spawn should spawn with the same heading as yours. If you're spawning them via a script, check player.getHeading() (it comes from from L2Character, so it's available for all characters).

Re: How to get player / npc heading?

Posted: Tue Aug 07, 2012 2:19 pm
by DreamStage
no that... i said, i didnt want the heading throw code. For that i already know. I mean, i addspawn(xxxxxxx) at some random location, but with some heading. I need to check with my ADMIN inside SERVER what heading i have at the exact same location looking for some location.

Re: How to get player / npc heading?

Posted: Tue Aug 07, 2012 2:29 pm
by Zoey76
http://svn.l2jdp.com/branches/unstable/ ... Shift.java

DP Changeset 8601

Check there, maybe I implement it for players too (if not done already) :D

Re: How to get player / npc heading?

Posted: Tue Aug 07, 2012 2:39 pm
by jurchiks
Do you want to spawn an npc like "//spawn npcId x y z heading"?

Re: How to get player / npc heading?

Posted: Tue Aug 07, 2012 3:48 pm
by DreamStage
ye, but now i found it, i didnt had that changeset. Thank you Zoey