SetPlayerRotation: Difference between revisions
Jump to navigation
Jump to search
m (→Syntax) |
|||
Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setPlayerRotation ( | bool setPlayerRotation ( player theplayer, float rotation ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''theplayer:''' An [[player]] referring to a player. | ||
*'''rotation:''' A [[float]] specifying the desired rotation. | *'''rotation:''' A [[float]] specifying the desired rotation. | ||
Revision as of 21:20, 3 December 2006
Thid function allows you to set the current rotation of the specified player.
Syntax
bool setPlayerRotation ( player theplayer, float rotation )
Required Arguments
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
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState