30.12.2010, 19:01
(
Последний раз редактировалось MJ!; 30.12.2010 в 21:23.
)
Hello guys. I found a thing: fRotX it's like the GetPlayerFacingAngle for playerid. I try to make like the arrow, to be with the top at the player. And i used function GetPointAngleToPoint, and i setted fRotX to variabile which i stock GetPointAngleToPoint.
Let's say, the angle between us two, it's 180.0 degrees, and i set the fRotX of arrow to 180.0 degrees, but the arrow doesn't 'look' at him.
What i must to add, or sub ?
Here's the code
Let's say, the angle between us two, it's 180.0 degrees, and i set the fRotX of arrow to 180.0 degrees, but the arrow doesn't 'look' at him.
What i must to add, or sub ?
Here's the code
pawn Код:
angle = GetPointAngleToPoint(hisposx, hisposy, myposx, myposy);
SetPlayerAttachedObject(playerid, 1, 1318, 1, 1.2532, 0.3623548, 0.0231, angle);