25.01.2015, 06:02
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);