Jump to content

Cvar current Health


Recommended Posts

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)"/>

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...