SetPedCameraRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setPedCameraRotation ( ped thePed, float rx, float ry, float rz )
bool setPedCameraRotation ( ped thePed, float cameraRotation )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''thePed:''' The [[ped]] element whose state is to be changed
*'''thePed:''' The [[ped]] whose camera rotation is to be changed
*'''rx:''' The new rotation on the X axis of the camera
*'''cameraRotation:''' The new direction that the ped will walk if you set their forwards control state
*'''ry:''' The new rotation on the Y axis of the camera
*'''rz:''' The new rotation on the Z axis of the camera


===Returns===
===Returns===

Revision as of 09:42, 3 May 2009

This function sets the camera rotation of a ped.

Syntax

bool setPedCameraRotation ( ped thePed, float cameraRotation )

Required Arguments

  • thePed: The ped whose camera rotation is to be changed
  • cameraRotation: The new direction that the ped will walk if you set their forwards control state

Returns

Returns true if the camera rotation was changed, false otherwise.

Example

--TODO

See Also

Shared