SetHealthScale() causes damage effect?

Discussion in 'Plugin Development' started by Desle, Mar 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Desle

    If I use the method setHealthScale(), it will also act like it's hurting the player, by tilting the screen, flash the hearts, all that.. Is there any way I can set the health scale without this?
     
  2. Offline

    KingPsychopath

    Ironic.
    I'm replying to you now, I don't mean to get your hopes up but from what I've seen I think it's not possible ( I've tried before ), anyone care to rebuttal I'd be glad.
     
  3. You can set your own scale, and then change the player's Max Health, and whenever he/she is damaged, multiply it by your scale :)
    For Example, if you want 12 hearts instead of 10: Set MaxHealth to 24, scale is 24/20.
    On EntityDamageEvent, when the player is damaged, multiply the damage by 24/20. It'll have the same effect as setting the HealthScale. :)
     
Thread Status:
Not open for further replies.

Share This Page