SetPlayerRotation

From Multi Theft Auto: Wiki
Revision as of 21:20, 3 December 2006 by DracoBlue (talk | contribs) (→‎Syntax)
Jump to navigation Jump to search


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