09.06.2012, 18:29
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:
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]);