SetCameraLookAt

From Multi Theft Auto: Wiki
Revision as of 03:49, 2 October 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function allows you to set a specified player's camera to look at a specific point.

Syntax

bool setCameraLookAt ( player thePlayer, float x, float y, float z )

Required Arguments

  • thePlayer: The player whose camera you wish to modify.
  • x: The x co-ordinate of the point to be looked at.
  • y: The y co-ordinate of the point to be looked at.
  • z: The z co-ordinate of the point to be looked at.

Returns

Returns a bool with a value of true if the function was successful, false otherwise.

Example

See Also