30.12.2010, 20:31
Ah right, the object rotates together with the player, you have to consider this.
That should wok at least better
pawn Код:
new Float:pangle;
GetPlayerFacingAngle(playerid, pangle);
pangle = 360 - angle;
angle = GetPointAngleToPoint(hisposx, hisposy, myposx, myposy);
SetPlayerAttachedObject(playerid, 1, 1318, 1, 0.755045, 0.161908, 0.036331, angle - (360 - pangle));
//or:
SetPlayerAttachedObject(playerid, 1, 1318, 1, 0.755045, 0.161908, 0.036331, (360 - pangle) - angle);
