SetCameraLookAt: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
This function allows you to set a specified player's camera to look at a specific point.
This function allows you to set a specified player's camera to look at a specific point when the camera is "fixed" (see [[setCameraMode]]).
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 12:26, 2 October 2006

This function allows you to set a specified player's camera to look at a specific point when the camera is "fixed" (see setCameraMode).

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