Difference between revisions of "SetPlayerRotation"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
{{Needs_Checking|The rotation must be a varible, it cannot be an actual number. For example, getplayerrotation and set it to a varible, then set player rotation to that varible + 10. Vehicle rotation function worked with a number. Other rotation functions may not be accepting numbers too, but vehicle did. So I doubt it. -Ransom}}
 
[[Category:Incomplete]]
 
[[Category:Incomplete]]
  

Revision as of 11:42, 25 December 2006

Dialog-information.png This article needs checking.

Reason(s): The rotation must be a varible, it cannot be an actual number. For example, getplayerrotation and set it to a varible, then set player rotation to that varible + 10. Vehicle rotation function worked with a number. Other rotation functions may not be accepting numbers too, but vehicle did. So I doubt it. -Ransom


Thid function allows you to set the current rotation of the specified player.

Syntax

bool setPlayerRotation ( player theplayer, float rotation )         

Required Arguments

  • theplayer: An player referring to a player.
  • rotation: A float specifying the desired rotation.

Returns

Returns true if successful, false otherwise.

Example

This example does...

-- rotate the player, so that he looks to the south
setPlayerRotation ( player, 180 )

See Also