GetPlayerSimplestTask: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{Deprecated}} | |||
This function is used to get the name of a specified players current simplest [[task]].<br> | This function is used to get the name of a specified players current simplest [[task]].<br> | ||
'''DP2 note:''' Don't call this on players that have not spawned. This will crash the client. | '''DP2 note:''' Don't call this on players that have not spawned. This will crash the client. |
Revision as of 14:31, 20 January 2009
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 function is used to get the name of a specified players current simplest task.
DP2 note: Don't call this on players that have not spawned. This will crash the client.
Syntax
string getPlayerSimplestTask ( player thePlayer )
Required Arguments
Returns
Returns a string representing the name of the player's simplest, active task.
Example
This example prints the name of a players simplest task to the chat, when they use the "sTask" command.
function showSTask () local thetask = getPlayerSimplestTask ( getLocalPlayer() ) outputChatBox ( getPlayerName ( getLocalPlayer() ) .. "'s simplest task is: " .. thetask ) end addCommandHandler ( "sTask", showSTask )
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