Getting axis in front of player.
#5

Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
Here you go.

Код:
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
CreateVehicle(*params here*,x + 2*floatcos(90+a, degrees), y+ 2*floatsin(90-a, degrees), z);
And if the angle isn't good modify this number "x + 2*floatcos(90+a, degrees), y+ 2*floatsin(90-a, degrees), z", change it with different numbers like 120...etc.
why tf u multiply by 2 and 90+a shit? i suck at math..
teach us your ways master...
Reply


Messages In This Thread
Getting axis in front of player. - by ReneG - 14.03.2012, 06:07
Re: Getting axis in front of player. - by Bogdan1992 - 14.03.2012, 06:12
Re: Getting axis in front of player. - by ReneG - 14.03.2012, 06:24
Re: Getting axis in front of player. - by Bogdan1992 - 14.03.2012, 06:32
Re: Getting axis in front of player. - by mastermax7777 - 28.01.2013, 02:29
Re: Getting axis in front of player. - by Babul - 28.01.2013, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)