Angles/Headings
#1

Ok, so..

Usually, I use GetPlayerFacingAngle to get a players heading, I face easterly, and it returns 90.0, which is correct.
However, today, it says 270.0 when I face easterly, and 90.0 when I face westerly. No code change, and it's not a problem with my code.

pawn Code:
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
format(str, sizeof(str), "Your heading is: %f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, str);
360.0/0.0 is North. 90.0 is East. 180.0 is South. 270.0 is West.

Why does it say 270.0 is East, and 90.0 is West?
Reply
#2

Are you an retard broooo? U gotz no skillz in leik degrees n' such bro... nOrTh Is 354.9132492348923 degrEsEsE bRoOoOo.
Reply
#3

Quote:
Originally Posted by philldog
View Post
Are you an retard broooo? U gotz no skillz in leik degrees n' such bro... nOrTh Is 354.9132492348923 degrEsEsE bRoOoOo.
First of all, You're the retarded one.

@Joe_, Read this https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
Reply
#4

Philldog, you are wrong.

BATAD, I know how to use it, but it returns the wrong angle. If I face east it should say I'm heading 90.0, not 270.0, and vise versa.
Reply
#5

bRoOo... HoOooOwWw DuMbBbB R u? U tHiNk U ArE a PiLoT? DuMbAsSsSsSsS... U WaAtChH 2 MeNy MuvVieZ.
Reply
#6

I am a pilot, go away please troll.
Reply
#7

Hm it works fine for me.
Dont know if this would make any difference (probably wont) but worth a try
pawn Code:
new Float:Angle;
GetPlayerFacingAngle(playerid, Float:Angle);
format(str, sizeof(str), "Your heading is: %f", Float:Angle);
SendClientMessage(playerid, 0xFFFFFFFF, str);
@phillguy, l2spell
Reply
#8

^.^ Troll mode de-activated was just messing with Joe.
Reply
#9

That doesn't change anything, Wesley.

When you face EAST, does it say 270 or 90? Mine says 270 and it SHOULD say 90.
Reply
#10

its just the direction (counterclockwise) a player facing angle gets returned. imagine watching the player from below the map, then its obvious: the player/vehicle rotations are "left handed"
to obtain the correct angle, simply use -angle
Reply
#11

Quote:
Originally Posted by Joe_
Посмотреть сообщение
Ok, so..

Usually, I use GetPlayerFacingAngle to get a players heading, I face easterly, and it returns 90.0, which is correct.
However, today, it says 270.0 when I face easterly, and 90.0 when I face westerly. No code change, and it's not a problem with my code.

pawn Код:
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
format(str, sizeof(str), "Your heading is: %f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, str);
360.0/0.0 is North. 90.0 is East. 180.0 is South. 270.0 is West.

Why does it say 270.0 is East, and 90.0 is West?
It is just how it is, Not to be rude or anything but you will get used to it .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)