Get forward
like in the game state integration
#368
Unanswered
lucasreppewelander
asked this question in
Questions
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to parse where a player is looking and from what I can see I can only get the
pitch
and `yaw. At first glance, thinking from a 2d perspective, this would be the best way to determine where the player is looking, but I seem to fail to get the correct value (i.e the player on my canvas is looking at the wrong direction).I do have a function which works with the CSGO game state integration and there I get the
forward
in this form:I've seen that there is something like aimDirection on the
usercmd
event or similar but I fail to understand how to use this on a certain tick/event? And I'm not sure if this is even what I am looking for.Do you guys have any idea of how to obtain the forward from either the pitch & yaw from
player.eyeAngles
or from another prop on the player? I'm trying to get this player information on certain events likeplayer_death
and etc.Thanks
Beta Was this translation helpful? Give feedback.
All reactions