Wrong rotation?
#1

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.
Reply
#2

the object with ID 0 exist? why not using the variable to save their id?
Reply
#3

ID 0 dosen't exist!

The objects start with id 1
Reply
#4

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.
Reply
#5

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)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)