Forum Discussion
GetPlayerState with PlayerStateVector set to position
Will give a players xyz position
- 4 years ago
Hi Matty101yttam,
Did that, but the coordinates appear to be spherical, not Cartesian. I wish to draw an imaginary line across the 2D map and establish how far a player is from that line and when they have crossed (ala, no-cross snipers)
Thoughts?
- 4 years ago
@Matty101yttam wrote:GetPlayerState with PlayerStateVector set to position
Will give a players xyz position
GetPlayerState with PSV set to 'position' gives you 'X,Y,Z' when you use Get[X/Y/Z]Component, but what does X/Y/Z refer to, spherical position? Since the X/Y never exceeds 360+/-, am I to assume 'X' is theta (angle relative to X), 'Y' is phi (angle relative to Z) and 'Z' is rho (length of radius)?
- 4 years ago
Didn't seem to have a max unit for me, have to double check. I know if i set a random vector eg 100,156,256 i can use players vector - the random vector to create a distance indicator on the side of the screen and go to that point.
- 4 years ago
nope got to x:430 so its more than 360
can just set it up if player_x > 100(just a random map section) then kill player(or whatever).
About Battlefield 2042 General Discussion
Recent Discussions
- 3 hours ago
- 6 hours ago
- 7 hours ago
- 7 hours ago