xyz555
Member
I have a script here, it is used in the get animation, it can make the XY coordinates of self, and direction, consistent with the item
Used in the protagonist's get animation, the effect of this script can take effect
However, on the contrary, if this script is used in the get animation of the enemy, the effect of this script will not take effect
What is the cause? I think my script can also take effect on the enemy, and I hope to get your help. Thank you and wish you good health and happy work.
Used in the protagonist's get animation, the effect of this script can take effect
However, on the contrary, if this script is used in the get animation of the enemy, the effect of this script will not take effect
What is the cause? I think my script can also take effect on the enemy, and I hope to get your help. Thank you and wish you good health and happy work.
Code:
anim get
@script
{
void self = getlocalvar("self");
void item = finditem(self);
int FD = getentityproperty(item, "direction");
void ex = getentityproperty(item ,"x");
void ez = getentityproperty(item ,"z");
void model = getentityproperty(item,"model");
if(model=="horse" || model=="horse-e" || model=="horse-e1" ||model=="horse-f" || model=="horse-t"){
changeentityproperty(self, "position", ex, ez);
changeentityproperty(self, "direction", FD);
}
}
@end_script
OffSet 176 176
Delay 1
@cmd antiwall 1 0 -2
movez 1
BBox 0
Frame data/chars/xiahoudun/horse/get01.GIF
movez 0
Delay 10
Frame data/chars/xiahoudun/horse/get01.GIF
Frame data/chars/xiahoudun/horse/get02.GIF
Frame data/chars/xiahoudun/horse/get03.GIF
Frame data/chars/xiahoudun/horse/get04.GIF