hello
ive made boss character
i whanted to make him play an animation when his life reaches 80%
then 50% then 20%...
i already have a script that makes this work
enemy.txt
but this will make the character play follow1 every time it returns to idle and hes health is below 80%
is there a way to make the character only play follow1 one time ?
I think this type of boss was already made in other borgames ???
ive made boss character
i whanted to make him play an animation when his life reaches 80%
then 50% then 20%...
i already have a script that makes this work
void damage(int hp,char ani)
{
void self=getlocalvar("self");
if (getentityproperty(self,"health")<=(getentityproperty(self,"maxhealth")*hp/100))
{
changeentityproperty(self,"animation",openborconstant(ani));
}
enemy.txt
anim idle
loop 1
delay 10
@cmd damage 80 "ANI_FOLLOW1"
offset 106 89
bbox 0 9 190 75
frame data/chars/MISC/car/sta1.GIF
but this will make the character play follow1 every time it returns to idle and hes health is below 80%
is there a way to make the character only play follow1 one time ?
I think this type of boss was already made in other borgames ???