Author Topic: Variable: If Health  (Read 554 times)

A variable that checks players and bots health level and fires a relay depending on it.

IfplayerHealth > Equals [100]
                 Is greater than
                   Is less than
                  Does not equal

That would be real nice to have.



Check the manual. I remember it being something like <var:pl:health>.

onRaped > self > VCE_bluhbluh > <var:player:health> = 100

Quote
onEvent > whatever > VCE_vce > <var:player:health> = 100

Check the manual. I remember it being something like <var:pl:health>.

Ah, the main issue is that we're using an edited version of the original variable events, and not VCE.

Does VCE pl:health work for bots as well?

What variable would do this then?
<var:pl:health>
<var:pl:maxhealth>

OnRelay > Self > fire relay
OnRelay > Self > VCE: ifvalue > Player > health == ##
OnVariableTrue > Minigame > Chatmessageall > \c4 Why is this last line here???
OnVariableTrue > Minigame > playsound > trolololol.wav