GetPlayerArmor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
<syntaxhighlight lang="lua">armor = getPlayerArmor ( findPlayer ( "Someguy" ) )
<syntaxhighlight lang="lua">armor = getPlayerArmor ( findPlayer ( "Someguy" ) )
outputChatBox ( "Someguy's current Armor: ", armor, "." )</syntaxhighlight>
outputChatBox ( "Someguy's current Armor: ", armor, "." )</syntaxhighlight>
==See Also==
{{Player functions}}

Revision as of 20:01, 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, "." )

See Also