Wombat2112
Banned
How would I increase an enemy boss characters aggression when they reach a at a specific percentage of HP
@script
void self = getlocalvar("self"); //Get calling entity.
int MHealth = getentityproperty(self,"maxhealth");
int Health = getentityproperty(self,"health");
if(Health <= MHealth*2/3){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
}
@end_script
void lifeCheckP (int Percent, void Ani)
// Check the life and change the animation if the health falls below defined percentage
// Douglas Baldan - 04/11/2013
//update by Bloodbane - 18/11/2017
{
void self = getlocalvar("self");
int MHealth = getentityproperty(self,"maxhealth");
int Health = getentityproperty(self,"health");
if(Health*100 <= Percent*MHealth){
changeentityproperty(self, "animation", openborconstant(Ani));
}
}
anim idle
@script
void self = getlocalvar("self"); //Get calling entity.
int MHealth = getentityproperty(self,"maxhealth");
int Health = getentityproperty(self,"health");
if(Health <= MHealth*0.3){
changeentityproperty(self, "aggression", 50);
}
@end_script
...