• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Texture Studio doors not opening
#1
When I rotate a door it rotates visually, but it's axis doesn't change and stays in the same position, so whenever I rotate a door it opens and closes in the same spots as before, has anyone ever encountered this?

EDIT: sorry, wrong thread
  Reply
#2
Use this function to rotate a object.
PHP Code:
stock RotateObject(objectid, Float:rotX, Float:rotY, Float:rotZ, Float:Speed)
{
? ? new 
Float:X, Float:Y, Float:Z, Float:SpeedConverted = floatmul(Speed, 0.01);
? ? 
GetObjectPos(objectid, X, Y, Z);
? ? 
SetObjectPos(objectid, X, Y, floatadd(Z, 0.01));
? ? 
MoveObject(objectid, X, Y, floatsub(Z, 0.01), SpeedConverted, rotX, rotY, rotZ);
? ? return 
1;
} 
  Reply