GetPlayerCameraUpVector

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:07, 9 December 2016
OstGot (Talk | contribs)

← Previous diff
Revision as of 14:33, 18 March 2017
OstGot (Talk | contribs)

Next diff →
Line 13: Line 13:
{{Param|Float:y|A float to store the Y coordinate, passed by reference.}} {{Param|Float:y|A float to store the Y coordinate, passed by reference.}}
{{Param|Float:z|A float to store the Z coordinate, passed by reference.}} {{Param|Float:z|A float to store the Z coordinate, passed by reference.}}
 +
 +{{Returns|
 +* The position is stored in the specified variables.}}
{{RelatedFunctions}} {{RelatedFunctions}}

Revision as of 14:33, 18 March 2017



GetPlayerCameraUpVector was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

This function returns the vector, that points to the upside of the camera's view, or, in other words, to the middle top of your screen.


Image:32px-Ambox_warning_orange.png

Note

This function was removed in SA-MP version 0.3b


Parameters:
(playerid, &Float:x, &Float:y, &Float:z)
playeridThe ID of the player you want to obtain the camera upvector of
Float:xA float to store the X coordinate, passed by reference.
Float:yA float to store the Y coordinate, passed by reference.
Float:zA float to store the Z coordinate, passed by reference.


Return Values:

  • The position is stored in the specified variables.


Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools