SetPlayerCameraLookAt
From SA-MP Wiki
(Difference between revisions)
Revision as of 21:52, 5 March 2012 Meta (Talk | contribs) (... and added the default value to "cut") ← Previous diff |
Revision as of 01:17, 3 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 37: | Line 37: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerCameraLookAt]] |
Revision as of 01:17, 3 February 2014
Description:
Set the direction a player's camera looks at. To be used in combination with SetPlayerCameraPos.
(playerid,Float:x,Float:y,Float:z,cut = CAMERA_CUT)
playerid | The player to change the camera of. |
Float:x | The X coordinate for the player's camera to look at. |
Float:y | The Y coordinate for the player's camera to look at. |
Float:z | The Z coordinate for the player's camera to look at. |
cut | The style the camera-position changes. |
Return Values:
This function does not return any specific values.
Note: The parameters below are for 0.3d and older versions and should be ignored if you run the latest version of SA-MP.
Parameters:
(playerid,Float:x,Float:y,Float:z)
playerid | The player to change the camera of. |
Float:x | The X coordinate for the player's camera to look at. |
Float:y | The Y coordinate for the player's camera to look at. |
Float:z | The Z coordinate for the player's camera to look at. |
Return Values:
This function does not return any specific values.
SetPlayerCameraPos(playerid, 320.0, 50.0, 170.0); SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerCameraPos: Set a player's camera position.
- SetCameraBehindPlayer: Set a player's camera behind them.
- GetPlayerCameraPos: Find out where the player's camera is.
- GetPlayerCameraFrontVector: Get the player's camera front vector