Announcement

Collapse
No announcement yet.

health

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    health

    I'm trying to do a adrenalin combo where if you die when the anden is counting down something happens.

    I don't know how to check to see how much health the person who started the combo has. Can anyone help me out (also I could use a point in the right direction for the starteffect and stopeffect functions). And yes I'm a (insert your favorite form of th word noob here) at UScript

    #2
    In the Combo class, there is a function called "StopEffect" which also gets the xPawn performing the Combo passed to it as P. StopEffect is called when the combo stops, be it from running out of adrenaline or by dying. One could, in that function, check for the adrenaline or health of the xPawn, and do whatever is needed there. It would be like:

    function StopEffect (xPawn P)
    {
    If (P.Controller.Adrenaline > 0)
    {
    Do this because player still has adrenaline, so they
    must have died
    }
    Else
    {
    Do this because they ran out of adrenaline.
    }
    }

    I'm not completely sure about the P.Controller.Adrenaline part, might want to try that if statement with P.Adrenaline. You could also try Health in place of Adrenaline. Hope this helps.

    Comment


      #3
      Cool, thanks!

      Comment

      Working...
      X