White Dragon
New member
It is possible to cancel the static jump?
jumpmove 3 3 is not enough...
if my hero jumps and than I want to move the hero after the jump, it cant move...
How can I solve this problem?
My script doesnt work well:
jumpmove 3 3 is not enough...
if my hero jumps and than I want to move the hero after the jump, it cant move...
How can I solve this problem?
My script doesnt work well:
Code:
int disable_static_jump(void self) {
float x = getentityproperty(self, "x");
float z = getentityproperty(self, "z");
float a = getentityproperty(self, "a");
if ( getentityproperty(self, "animationid") == openborconstant("ANI_JUMP") ) {
if ( x == getlocalvar("x") ) {
setlocalvar("static_jump",1);
}
if (getlocalvar("static_jump") == 1) {
if ( playerkeys(0,0,"moveright") == 8 ) {
float dist = getentityproperty(self,"speed");
changeentityproperty(self,"position",x+(dist*0.5),z,a);
} else if ( playerkeys(0,0,"moveleft") == 4 ) {
float dist = getentityproperty(self,"speed");
changeentityproperty(self,"position",x-(dist*0.5),z,a);
} else if ( playerkeys(0,0,"moveup") == 16 ) {
float dist = getentityproperty(self,"speed");
//changeentityproperty(self,"position",x,z-(dist*0.5),a);
} else if ( playerkeys(0,0,"moveup") == 32 ) {
float dist = getentityproperty(self,"speed");
//changeentityproperty(self,"position",x,z+(dist*0.5),a);
}
}
setlocalvar("x", x);
} else setlocalvar("static_jump",0);
}