Issue with GetObjectRot - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Issue with GetObjectRot (
/showthread.php?tid=519535)
Issue with GetObjectRot -
SKAzini - 14.06.2014
EDIT: Solved, GetObjectRot -> GetDynamicObjectRot
Okay, so I am having an issue with GetObjectRot.
It doesn't return the correct object rotation for some reason.
pawn Код:
FBIDoor = CreateDynamicObject(1495, 1294.11646, 554.91089, 1066.70776, 0.00000, 0.00000, -90.00000);
new Float:RotX, Float:RotY, Float:RotZ;
GetObjectRot(FBIDoor, RotX, RotY, RotZ);
printf("%f", RotZ);
It prints 0.000000 when it should print -90.00000. Do you know what's wrong?
Re: Issue with GetObjectRot -
Crayder - 26.10.2014
I'm having this exact issue, but Im not using streamer at all... same code but its not dynamic, anyone help?
Re: Issue with GetObjectRot -
Rudy_ - 26.10.2014
Quote:
Originally Posted by Crayder
I'm having this exact issue, but Im not using streamer at all... same code but its not dynamic, anyone help?
|
Can you show ur code?
Re: Issue with GetObjectRot -
Crayder - 26.10.2014
Quote:
Originally Posted by Rudy_
Can you show ur code?
|
Nvm, it was because OnPlayerEditObject was never called!