Player flying
#6

Use GetXYInFrontOfPlayer on the player holding the baseball, and then loop to check who's standing in front of them.
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);
Reply


Messages In This Thread
Player flying - by MerryDeer - 03.09.2016, 07:21
Re: Player flying - by SoLetsGO - 03.09.2016, 07:42
Re: Player flying - by MerryDeer - 03.09.2016, 07:53
Re: Player flying - by SoLetsGO - 03.09.2016, 07:57
Re: Player flying - by MerryDeer - 03.09.2016, 08:16
Re: Player flying - by Stinged - 03.09.2016, 08:29
Re: Player flying - by MerryDeer - 03.09.2016, 08:38

Forum Jump:


Users browsing this thread: 1 Guest(s)