GetPlayerFacingAngle after SetPlayerFacingAngle
#7

Theoretically the player's facing angle is unchanged at the moment you send the SetPlayerFacingAngle command to do so, until he received it. To ensure that they have already received, the player need to tell the server the facing angle was changed. Thus the data can only be updated in the next player update, so I doubt it is a bug.

Also, I don't understand why you need to use GetPlayerFacingAngle right after using SetPlayerFacingAngle. If you assume GetPlayerFacingAngle returns what you have just set, why don't you just use that angle constant/variable?
For example:
pawn Код:
SetPlayerFacingAngle(playerid,10.0);
facingangle[playerid] = 10.0;//Instead of GetPlayerFacingAngle(facingangle[playerid]);
Reply


Messages In This Thread
GetPlayerFacingAngle after SetPlayerFacingAngle - by MP2 - 06.06.2012, 23:34
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by Basssiiie - 09.06.2012, 12:46
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by [MM]IKKE - 09.06.2012, 12:50
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by Basssiiie - 09.06.2012, 13:09
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by Patrik356b - 09.06.2012, 17:20
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by [MM]IKKE - 09.06.2012, 18:03
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by leong124 - 09.06.2012, 18:29
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by MP2 - 10.06.2012, 01:12
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by cessil - 10.06.2012, 02:07
Re: GetPlayerFacingAngle after SetPlayerFacingAngle - by MP2 - 10.06.2012, 02:19

Forum Jump:


Users browsing this thread: 6 Guest(s)