Garry's Mod Wiki

Player:SetMaxArmor

Player:SetMaxArmor( number maxarmor )

Just Added

This was just added in the latest version (2020.10.14). It might only be available on the Dev Branch right now.

Description

Sets the maximum amount of armor the player should have. This affects default built-in armor pickups, but not Player:SetArmor.

This limit isn't reset after a player respawn. This means that if you set the max armor to 50 and the player dies, the limit will always be 50 instead of the limit set by the player's class (like Entity:SetMaxHealth). This will be fixed in the next update..

Issue Tracker: 4707

Arguments

1 number maxarmor
The new max armor value.

Page Links


Special Pages


Wikis

?

Render Time: 78ms

DB GetPage 48
Generate Html 4
SaveChanges (1) 11
Render Body 0
Render Sidebar 13