There is a bar ( Health) Sprite that counts health from the end
In this section of the code produces Health from the beginning
How do I set the countdown from the end?
Thanks
PHP Code:
if(HEALTH_BOSS < (cso_boss_health - 1000.0))
{
set_pev(y_hpbar, pev_frame, 100.0)
} else {
set_pev(y_hpbar, pev_frame, 0.0 + ((((cso_boss_health - 1000.0) - 1 ) * 100) / HEALTH_BOSS))
}