xyz555
Member
I am troubled. Because in the game I am making, under some special the player must use the (changeentityproperty(self, "weapon", 1)script To switch weapons. But the problem is. When the player turns the weapon with his foot,
it is impossible to drop the weapon at the moment of being hit and falling to the ground.
anim follow1
@script
if (frame==0){
void self = getlocalvar("self");
changeentityproperty(self,"weapon",1);
}
@end_script
Delay 5
OffSet 164 171
BBox 156 109 19 64
@cmd damage 500 1 "ATK_NORMAL1"
Frame data/chars/guanyu/a1.gif
Delay 8
Attack 182 108 55 29 5 0 0 0 20
BBox 156 109 19 64
Frame data/chars/guanyu/a2.gif
Delay 5
Attack 0
Frame data/chars/guanyu/a3.gif
it is impossible to drop the weapon at the moment of being hit and falling to the ground.
anim follow1
@script
if (frame==0){
void self = getlocalvar("self");
changeentityproperty(self,"weapon",1);
}
@end_script
Delay 5
OffSet 164 171
BBox 156 109 19 64
@cmd damage 500 1 "ATK_NORMAL1"
Frame data/chars/guanyu/a1.gif
Delay 8
Attack 182 108 55 29 5 0 0 0 20
BBox 156 109 19 64
Frame data/chars/guanyu/a2.gif
Delay 5
Attack 0
Frame data/chars/guanyu/a3.gif