Set Player Velocity
#1

----
Reply
#2

e.g. like this:
Код:
	new Float:a, Float:vx, Float:vy;
	GetPlayerFacingAngle(playerid, a);
	vx = 0.5 * floatsin(-(a+90), degrees);
	vy = 0.5 * floatcos(-(a+90), degrees);
	SetPlayerVelocity(playerid, vx, vy, 0.00);
(change the "0.5" to adjust the speed)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)