GetPlayerArmor: Difference between revisions
Jump to navigation
Jump to search
m (→Example) |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">float getPlayerArmor ( player player )</syntaxhighlight> | |||
===Required Arguments=== | ===Required Arguments=== | ||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">armor = getPlayerArmor ( findPlayer ( "Someguy" ) ) | |||
outputChatBox ( "Someguy's current Armor: ", armor, "." )</syntaxhighlight> |
Revision as of 03:35, 20 May 2006
Description
This function returns a float that contains the current armor for the specified player.
Syntax
float getPlayerArmor ( player player )
Required Arguments
- player: The player whose armor you want to check
Example
armor = getPlayerArmor ( findPlayer ( "Someguy" ) ) outputChatBox ( "Someguy's current Armor: ", armor, "." )