Back to TPG

TPG.Loadout.ApplyArmor

S🏷️ Loadout

Part of TPG namespace

TPG.Loadout.ApplyArmor(ply, armorId)
View on GitHub|gamemode/player/sv_loadout.lua:472-483
📋 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

NameTypeDescription
plyPlayer
armorIdnumber

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.