Part of TPG namespace
TPG.Loadout.ApplyArmor(ply, armorId)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Set ply's model, health and armor from the armorId tier's stats (TPG.GetArmor). Sets both current and max health to the tier's value, so an armor change also resets the health pool rather than merely capping it.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player | |
armorId | number |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.