Thread Tools Display Modes
07/12/14, 01:30 PM   #1
Sir Tigär
Join Date: Jul 2014
Posts: 9
Angle of the player´s looking direction. [ZrMM-Addon?]

Hello mates.

I am new here, just want to ask, if there is a possibility to get, or to display the exact angle of the player´s looking direction? According to this, i want to show it on a label in ESO.

I looked the ZrMM.lua Code throw, but couldnt find such information.

Thx for help.

regards.

Marcel
(country: austria..)
  Reply With Quote
07/12/14, 01:49 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Yes, it is possible to get player's looking direction. For example minimap in LUI has this feature.
http://www.esoui.com/downloads/info413-LUI.html

You can use this function to get heading:
lua Code:
  1. local normalizedX, normalizedZ, heading = GetMapPlayerPosition("player")
  Reply With Quote
07/12/14, 02:19 PM   #3
Sir Tigär
Join Date: Jul 2014
Posts: 9
Thx a lot mate!

I am so glad now

regards.

Marcel
  Reply With Quote
07/21/14, 04:59 AM   #4
Sir Tigär
Join Date: Jul 2014
Posts: 9
Player Heading update not always work!

Hello mates.
When i move my player throw the world (with keys like "w,a,s,d") the heading update works fine.
But when i stand always on the same position (x,y), without presing the keys like ("w,a,s,d"), the heading number doesend update..
I prefer playing in ego-perspective. But also in the other camera-function, it doesent work...

In rare cases, when i logged in and after that, not pressing any keys on keyboard, it will update the
heading number. I have no idea :/

Thx for help guys.

regards
Marcel

code:
function FooAddon.update()
local x,z,heading = GetMapPlayerPosition("player")
d(heading)
end
  Reply With Quote
07/21/14, 05:17 AM   #5
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sir Tigär View Post
Hello mates.
When i move my player throw the world (with keys like "w,a,s,d") the heading update works fine.
But when i stand always on the same position (x,y), without presing the keys like ("w,a,s,d"), the heading number doesend update..
I prefer playing in ego-perspective. But also in the other camera-function, it doesent work...

In rare cases, when i logged in and after that, not pressing any keys on keyboard, it will update the
heading number. I have no idea :/

Thx for help guys.

regards
Marcel

code:
function FooAddon.update()
local x,z,heading = GetMapPlayerPosition("player")
d(heading)
end
There are two different values - character heading and camera heading:
Lua Code:
  1. local cameraHeading = GetPlayerCameraHeading()
  2. local x, y, characterHeading = GetMapPlayerPosition("player")
  Reply With Quote
07/21/14, 05:40 AM   #6
Sir Tigär
Join Date: Jul 2014
Posts: 9
Originally Posted by Garkin View Post
There are two different values - character heading and camera heading:
[highlight="Lua"]local cameraHeading = GetPlayerCameraHeading()
Great, that works now. Just another question. Is there also a value for camera-heading up/down (z-coordinate) ?

regards!

Marcel
  Reply With Quote
07/21/14, 06:54 AM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sir Tigär View Post
Great, that works now. Just another question. Is there also a value for camera-heading up/down (z-coordinate) ?

regards!

Marcel
No, there is no such function that will return z-coordinate. Everything is just relative position to the 2D map.

List of available functions is here:
http://wiki.esoui.com/Main_Page

Or in the attached file to this topic:
http://forums.elderscrollsonline.com...change-log-pts
  Reply With Quote
07/21/14, 08:03 AM   #8
Sir Tigär
Join Date: Jul 2014
Posts: 9
Thx for all mate.

ciao

Marcel
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Angle of the player´s looking direction. [ZrMM-Addon?]


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off