03.09.2016, 07:21
Player flying
03.09.2016, 07:42
You have to detect if the player is hitting the other player.
Then you need some kind of animation for the player and then you can make him flying using SetPlayerVelocity
Then you need some kind of animation for the player and then you can make him flying using SetPlayerVelocity
03.09.2016, 07:53
What numbers i need to use in setplayervelocity to make that?
03.09.2016, 07:57
Well there should be something you have to do.
Try to make a command:
Then just use the command to find out which value you need.
Try to make a command:
PHP код:
CMD:setvel(playerid,params[])
{
new Float:x,Float:y,Float:z;
sscanf(params,"fff",x,y,z);
SetPlayerVelocity(playerid,x,y,z);
return 1;
}
03.09.2016, 08:16
Yes, but it always set velocty in what direction in what facing, i want that it changes by front of my, like getxyinfrontofplayer,
03.09.2016, 08:29
Use GetXYInFrontOfPlayer on the player holding the baseball, and then loop to check who's standing in front of them.
After that, use this:
After that, use this:
Код:
new Float: X, Float: Y, Float: A; GetPlayerFacingAngle(playerid, A); X = floatsin(-A, degrees); Y = floatcos(-A, degrees); SetPlayerVelocity(TARGETID, floatmul(ENTERY_VELOCITY, X), floatmul(ENTER_VELOCITY, Y), ENTER_Z);
03.09.2016, 08:38
Thanks!!!!
And what animation is in what video?
And what animation is in what video?
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)