GetPlayerRotation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{deprecated}} | {{deprecated}} | ||
{{Needs_Checking|Why is this deprecated? [[User:Erorr404|Erorr404]]}} | {{Needs_Checking|Why is this deprecated? [[User:Erorr404|Erorr404]]}} | ||
{{Needs_Checking|I believe it is getElementRotation or something.. [[User:Talidan2|Talidan]]}} | |||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== |
Revision as of 15:59, 17 September 2006
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does. | |
This article needs checking. | |
Reason(s): Why is this deprecated? Erorr404 |
This article needs checking. | |
Reason(s): I believe it is getElementRotation or something.. Talidan |
Description
This function returns a float containing the current rotation (in degrees) of the player. Its values lie between 0 and 359. This function can fail if the player is in a car. Use the getVehicleRotation function in this case. If this function does fail, the first argument will be set to 'false'.
Syntax
float getPlayerRotation ( player player )
Required Arguments
- player: The player whose rotation you want to retrieve.
Example
fRot = getPlayerRotation ( findPlayer ( "someguy" ) ) if ( fRot ) serverChat ( "Someguy's current rotation: ", fRot, "." ) end
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