SetPedCameraRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{Client function}} __NOTOC__ This function sets the camera rotation of a ped. ==Syntax== <syntaxhighlight lang="lua"> bool setPedCameraRotation ( ped ped, float rx, float ry, float rz ) </syntaxhighlight> ===R...)
 
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setPedCameraRotation ( ped ped, float rx, float ry, float rz )
bool setPedCameraRotation ( ped thePed, float rx, float ry, float rz )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''ped:''' the PED element whose state is to be changed
*'''thePed:''' The [[ped]] element whose state is to be changed
*'''rx:''' the new rotation x
*'''rx:''' The new rotation on the X axis of the camera
*'''ry:''' the new rotation y
*'''ry:''' The new rotation on the Y axis of the camera
*'''rz:''' the new rotation z
*'''rz:''' The new rotation on the Z axis of the camera


===Returns===
===Returns===
Returns ''true'' if the camera rotation could be changed, ''false'' otherwise.
Returns ''true'' if the camera rotation was changed, ''false'' otherwise.


==Example==  
==Example==  
 
<syntaxhighlight lang="lua">--TODO</syntaxhighlight>
<syntaxhighlight lang="lua">--Write an example</syntaxhighlight>


==See Also==
==See Also==
{{Ped functions}}
{{Client ped functions}}

Revision as of 09:11, 3 May 2009

This function sets the camera rotation of a ped.

Syntax

bool setPedCameraRotation ( ped thePed, float rx, float ry, float rz )

Required Arguments

  • thePed: The ped element whose state is to be changed
  • rx: The new rotation on the X axis of the camera
  • ry: The new rotation on the Y axis of the camera
  • rz: The new rotation on the Z axis of the camera

Returns

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

Example

--TODO

See Also

Shared