Posts: 214
Threads: 18
Joined: Oct 2014
Reputation:
0
Hello, is there a possible way to get the facing of the camera?
I am in need of the camera facing angle or a function like GetCameraFacingAngle.
Thanks.
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
GetPlayerCameraFrontVector
This function returns a vector X, Y, Z of the place where the player is aiming in 3D space from 2D. Yes, you may call this a sort of facing angle.
GetPlayerCameraPos
This generally gives the player camera pos in 3D space.
For making a generall camera for class selection, use those ^^ for reading the cordinates. And then use SetPlayerCameraPos and SetPlayerCameraLookAt for facing angle*.
TIP: you may use map editor for the same purpose. There is camera options at the top in VIEW sub window.