25.01.2015, 22:39
Hii,
When i am trying to rotate a door with MoveObject nothing happens. But when i alt+tab and come back in game its rotated.
Code:
Can anyone confirm this?
Admigo
EDIT: Also noticed at SetObjectRot();
When i am trying to rotate a door with MoveObject nothing happens. But when i alt+tab and come back in game its rotated.
Code:
pawn Код:
new Float:x,Float:y,Float:z;
new Float:rx,Float:ry,Float:rz;
GetObjectPos(Door,x,y,z);
GetObjectRot(Door,rx,ry,rz);
MoveObject(DoorObject[0], x,y,z+0.0001, 0.0001, 0.0, 0.0, rz-90.0);
Admigo
EDIT: Also noticed at SetObjectRot();