anim fall
@script
if( frame == 3 ){
void self = getlocalvar("self");
int Health = getentityproperty(self, "health");
int Land = getentityproperty(self, "damage_on_landing");
changeentityproperty(self, "damage_on_landing", 0);
if( Health > Land ){
changeentityproperty(self, "health", Health-Land);
} else if( Health <= Land ){
damageentity(self, self, 20, 1, openborconstant("ATK_NORMAL"));
}
}
@end_script
landframe 3
delay 10
offset 60 98
frame data/chars/longmoan/p1.png
delay 30
attack 70 90 20 20 4 1 0 1
forcedirection 1
frame data/chars/longmoan/f2.png
delay 200
frame data/chars/longmoan/f3.png
attack 0
delay 20
frame data/chars/longmoan/die1.png