InterpolateCameraLookAt

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:15, 11 June 2012
Drebin (Talk | contribs)

← Previous diff
Revision as of 05:08, 12 June 2012
Smithy (Talk | contribs)
(Yes, it does.)
Next diff →
Line 18: Line 18:
{{NoReturn}} {{NoReturn}}
- 
-{{note|InterpolateCameraLookAt does not work under [[OnPlayerRequestClass]].}} 
{{RelatedFunctions}} {{RelatedFunctions}}

Revision as of 05:08, 12 June 2012


Interpolate a player's camera's 'look at' point between two coordinates with a set speed. Can be be used with InterpolateCameraPos.


InterpolateCameraLookAt was added in SA-MP 0.3x This function was added in SA-MP 0.3e and will not work in earlier versions!


Parameters:
(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT)
playeridThe ID of the player the camera should be moved for
Float:FromXThe X position the camera should start to move from
Float:FromYThe Y position the camera should start to move from
Float:FromZThe Z position the camera should start to move from
Float:ToXThe X position the camera should move to
Float:ToYThe Y position the camera should move to
Float:ToZThe Z position the camera should move to
timeTime in milliseconds to complete interpolation
cutThe jumpcut to use. Defaults to CAMERA_CUT. Set to CAMERA_MOVE for interpolation


ReturnsThis function doesn't return a specific value


Related Functions

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

Personal tools