Player/SetArmor

From Garry's Mod
Jump to: navigation, search
 Player:SetArmor( )

Contents

Description

Sets the player armor to the argument.

Arguments

number Amount

The amount that the player armor is going to be set to.

Examples

Example

Sets the player armor to 100 when he types "GiveArmor" at the console.

concommand.Add( "GiveArmor", function( ply )
 ply:SetArmor( 100 )
end )

Output:

Sets the player armor to 100
Personal tools
Navigation