Move a object on my body
#4

This is possibly not right, it would be something like this (you should try this):

pawn Код:
new Float:x, Float:y, Float:z, Float:VX, Float:VY, Float:A, movetime;
GetObjectPos(playerid, x, y, z); //obj pos
GetPlayerCameraFrontVector(playerid, VX, VY, A); //front vector, obviously
A = atan2(VY, VX) - 180.0; //Angle right of player's camera
movetime = MoveObject(objectid, x+floatsin(-A, degrees), y+floatcos(A, degrees), z, 4.00);
Reply


Messages In This Thread
Move a object where I am facing - by Flokx - 25.01.2015, 02:18
Re: Move a object on my body - by Flokx - 25.01.2015, 04:04
AW: Move a object on my body - by Saize - 25.01.2015, 05:22
Re: Move a object on my body - by Crayder - 25.01.2015, 06:02

Forum Jump:


Users browsing this thread: 3 Guest(s)