Wrong rotation? - 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: Wrong rotation? (
/showthread.php?tid=586633)
Wrong rotation? -
zaibaslr2 - 23.08.2015
Hi all,
So I'm doing a system and faced an issue:
Код:
new Float:RotX,Float:RotY,Float:RotZ;
SetDynamicObjectRot(0,0.0,0.0,64.0);
GetDynamicObjectRot(0,RotX,RotY,RotZ);
printf("%f %f %f",RotX,RotY,RotZ);
prints "0.000000 0.000000 0.000000"
Why does it give wrong rotation?
Do I have to update the streamer somehow? I know there is a function
Код:
Streamer_Update(playerid,type = -1)
but it requires playerid, and I don't have any players.
thanks for help
Edit: above code was wrong because object did not exist, but the problem with wrong rotation returns is still here.
Respuesta: Wrong rotation? -
Zume - 23.08.2015
the object with ID 0 exist? why not using the variable to save their id?
AW: Wrong rotation? -
Kaliber - 23.08.2015
ID 0 dosen't exist!
The objects start with id 1
Re: Wrong rotation? -
Vince - 23.08.2015
This does not work because of network reasons. I don't know the details, but the update has to be sent to the players first. Besides, retrieving coordinates that you just explicitly set is completely dense.
Re: Wrong rotation? -
zaibaslr2 - 23.08.2015
Quote:
Originally Posted by Vince
This does not work because of network reasons. I don't know the details, but the update has to be sent to the players first. Besides, retrieving coordinates that you just explicitly set is completely dense.
|
I set object's rotation and move it, then after 1sec I need to get it's rotation and use it, add to it and then repeat (set rotation, move again)