SetPlayerCameraLookAt

From SA-MP Wiki

Jump to: navigation, search

SetPlayerCameraLookAt


Set the direction the player's camera looks at. You should use this in combination with SetPlayerCameraPos.


Parameters:
(playerid,Float:x,Float:y,Float:z)
playeridThe player you want to change the camera of.
Float:xThe X coordinate for the camera to look at.
Float:yThe Y coordinate for the camera to look at.
Float:zThe Z coordinate for the camera to look at.


This function does not return a specific value.


SetPlayerCameraPos(playerid, 320.0, 50.0, 170.0);
SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35);

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools