Hi guys-
for some reason and randomly whenever player one performs a floor grab move
sometimes the enemy from across the screen is replaced (teleported) by the nearest enemy that I'm trying to floor grab.
Any hints or things on the code that look off are really appreciated
Here's the ani0020_actual.h bind code in the script
and here's the players code:
for some reason and randomly whenever player one performs a floor grab move
sometimes the enemy from across the screen is replaced (teleported) by the nearest enemy that I'm trying to floor grab.
Any hints or things on the code that look off are really appreciated
Here's the ani0020_actual.h bind code in the script
Code:
void bind(int null, float x, float z, float y, int dir){
void self = getlocalvar("self");
void opp = getentityproperty(self, "opponent");
if(null == 1)
{
bindentity(opp, self, x, z, y, dir, 0);
}
else if(null == 0)
{
bindentity(opp, NULL());
}
}
and here's the players code:
Code:
# floor enemy attack
# floor enemy attack
anim follow15
loop 1
delay 9
offset 85 170
cancel 0 1 0 A freespecial12
cancel 0 1 0 B freespecial16
@cmd forceanim openborconstant("ANI_FOLLOW77")
@cmd bind 8 0 0 1 0
frame data/chars/billy/ball/gr0.png
@cmd forceanim openborconstant("ANI_FOLLOW77")
@cmd bind 8 0 0 1 0
frame data/chars/billy/ball/gr0.png