GetPedRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Gets the rotation of a ped. ==Syntax== <syntaxhighlight lang="lua"> float getPedRotation ( ped thePed ) </syntaxhighlight> ===Required Arguments=== *'''thePed:''' the ped to get the ro...)
 
mNo edit summary
Line 9: Line 9:


===Required Arguments===
===Required Arguments===
*'''thePed:''' the ped to get the rotation of.
*'''thePed:''' the ped to retrieve the rotation of.


===Returns===
===Returns===
Returns the rotation of the ped, in degrees. 0 means facing north, higher values go counter clockwise.
Returns the rotation of the ped, in degrees: 0 means facing north, higher values go counter clockwise. Returns ''false'' if an invalid element was passed.


==See Also==
==See Also==
{{Client_ped_functions}}
{{Client_ped_functions}}

Revision as of 00:19, 28 March 2008

Gets the rotation of a ped.

Syntax

float getPedRotation ( ped thePed )

Required Arguments

  • thePed: the ped to retrieve the rotation of.

Returns

Returns the rotation of the ped, in degrees: 0 means facing north, higher values go counter clockwise. Returns false if an invalid element was passed.

See Also