Thread: Health bar
View Single Post
  #6  
Old 11-03-2011, 04:51 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Depending on how your damage is handled you could just do something like this with showani and scheduleevent.

PHP Code:
//#CLIENTSIDE
function onDamage(amount) {
  
showani(100player.xplayer.y0"your_damage_gani"hp_ratio);
  
this.scheduleevent(2"HideDamage""");
}

function 
onHideDamage() {
  
hideimg(100);

You'll be able to use params[0]/hp_ratio to determine how much of the bar you'll need to show.
__________________
Quote:
Reply With Quote