SetArmour

From The KillerJim Mod Wiki

PlayerProxy::SetArmor

SetArmor.png

Server Only Function - This is an function executes only on the server.

Description

Players have both armor and health; during any impacts the armor is depleted first (see How damage is applied for information on how). This function allows you to set armor, any previous value is lost.

If you supply zero or a negative value the armor will be effectively turned off.

Arguments
1 Float Amor
The value to set the armor to, this can be negative.

Playing

Developers

Developer Reference