fRotX for SetPlayerAttachedObject
#1

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
pawn Код:
angle = GetPointAngleToPoint(hisposx, hisposy, myposx, myposy);
SetPlayerAttachedObject(playerid, 1, 1318, 1, 1.2532, 0.3623548, 0.0231, angle);
Reply


Messages In This Thread
angle problem - by MJ! - 30.12.2010, 19:01
Re: fRotX for SetPlayerAttachedObject - by Mauzen - 30.12.2010, 19:59
Re: fRotX for SetPlayerAttachedObject - by MJ! - 30.12.2010, 20:02
Re: fRotX for SetPlayerAttachedObject - by Mauzen - 30.12.2010, 20:31
Re: fRotX for SetPlayerAttachedObject - by MJ! - 01.01.2011, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)