SetPlayerCameraLookAt
From SA-MP Wiki
SetPlayerCameraLookAt
Set the direction the player's camera looks at. You should use this in combination with SetPlayerCameraPos.
(playerid,Float:x,Float:y,Float:z)
| playerid | The player you want to change the camera of. |
| Float:x | The X coordinate for the camera to look at. |
| Float:y | The Y coordinate for the camera to look at. |
| Float:z | The 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.
- SetPlayerCameraPos: Set a player's camera position.
- SetCameraBehindPlayer: Set a player's camera behind them.
