SetPlayerCameraLookAt

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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.


Parameters:
(playerid,Float:x,Float:y,Float:z,cut = CAMERA_CUT)
playeridThe player to change the camera of.
Float:xThe X coordinate for the player's camera to look at.
Float:yThe Y coordinate for the player's camera to look at.
Float:zThe Z coordinate for the player's camera to look at.
cutThe 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)
playeridThe player to change the camera of.
Float:xThe X coordinate for the player's camera to look at.
Float:yThe Y coordinate for the player's camera to look at.
Float:zThe 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.

In other languages