- Documentation
- Server functions
- getPedCameraRotation
Function
getPedCameraRotation
Returns the ped camera heading stored with setPedCameraRotation (0 by default). It does not read the player's real camera.
Syntax
float getPedCameraRotation(ped ped)Arguments
pedped- A player or an NPC.
Returns
Angle in degrees.
Example
outputServerLog(getPedCameraRotation(player))