SetPlayerCameraPos
From SA-MP Wiki
(Difference between revisions)
Revision as of 15:36, 7 September 2012 Drebin (Talk | contribs) ← Previous diff |
Revision as of 01:10, 3 February 2014 Connor Mead (Talk | contribs) (add fr link) Next diff → |
||
Line 23: | Line 23: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerCameraPos]] |
Revision as of 01:10, 3 February 2014
Description:
Sets the camera to a specific position for a player.
(playerid,Float:x,Float:y,Float:z)
playerid | ID of the player |
Float:x | New x-position of the camera |
Float:y | New y-position of the camera |
Float:z | New z-position of the camera |
Return Values:
This function does not return any specific values.
SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84);
Note | Use SetCameraBehindPlayer to reset the camera behind the player. |
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerCameraLookAt: Set where a player's camera should face.
- SetCameraBehindPlayer: Set a player's camera behind them.