• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Cvar current Health

Luduaver

Refugee
Is there any way to define CVAR as the current health and also the max health?

For example, max health 200 and current health 157 

<triggered_effect trigger="onOtherAttackedSelf" action="ModifyCVar" cvar="cvarCurrentHealth" operation="set" value="157 (CURRENT HEALTH HERE)"/>

<triggered_effect trigger="onOtherAttackedSelf" action="ModifyCVar" cvar="cvarCurrentHealth" operation="set" value="200 (MAX HEALTH HERE)"/>

 
Back
Top