- Documentation
- Server functions
- setPedCameraRotation
Function
setPedCameraRotation
Stores a ped's camera heading in degrees (-360 to 360). In Trilogy Hub this is state for scripts returned by getPedCameraRotation; the player's camera does not turn. Use the Camera functions such as setCameraMatrix to control a player's camera.
Syntax
bool setPedCameraRotation(ped ped, float value)Arguments
pedped- A player or an NPC.
valuefloat- Angle in degrees from -360 to 360.
Returns
true on success.
Example
setPedCameraRotation(player, 90)
Notes
State for scripts.