• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Cvar current Health

Luduaver

New member
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