Native leaper command

kimono

Well-known member
I have a question about the leaper command:
It's native to the engine and doesn't take into account the character's facing: if they're facing left, they'll still jump to the right.
What function do you use to correct this?
 
Thanks for the clarification O'; I found a script that fixes this problem of jumping left or right but I don't know who owns it:
Code:
void leaper( float Vx, float Vy, float Vz )
{// Leap with desired speed!
    void self = getlocalvar("self");
    int dir = getentityproperty(self,"direction");

    if(dir==0){ // Facing left?
      Vx = -Vx ;
    }

    tossentity(self, Vy, Vx, Vz); //Leap!
}
 
Back
Top Bottom