How to always move forward
#3

pawn Код:
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
SetPlayerPos(playerid, x-(DISTANCE_TO_MOVE*floatsin(a, degrees)), y+(DISTANCE_TO_MOVE*floatcos(a, degrees)), z);
Tested it and it works, replace DISTANCE_TO_MOVE with the distance you want to move the player.
Reply


Messages In This Thread
How to always move forward - by Colossus874 - 16.03.2013, 11:06
Re: How to always move forward - by park4bmx - 16.03.2013, 12:58
Re: How to always move forward - by 3ventic - 16.03.2013, 13:32
Re: How to always move forward - by park4bmx - 16.03.2013, 16:27
Re: How to always move forward - by RajatPawar - 16.03.2013, 16:31
Re: How to always move forward - by Mystique - 16.03.2013, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)