Mega jump help
#1

Well, this is the script:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_JUMP))
{
SetPlayerVelocity(playerid, 0.0,0.2,0.5);
}
}
This script works, but the player mega jump is on specific directions..
How can i make my mega jump directional?
Reply
#2

just get the current vX and vY

pawn Код:
new
    Float: vX,
    Float: vY,
    Float: vZ
;
GetPlayerVelocity(playerid, vX, vY, vZ);
SetPlayerVelocity(playerid, vX, vY, 0.5);
Reply
#3

By the math. make yourself these calc's.
Reply
#4

Okay, thanks for your help Nero
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)