(2021-03-05, 08:38 AM)Radical Wrote: Use this function to rotate a object.https://burgershot.gg/showthread.php?tid=1728PHP 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;
}
Messages In This Thread |
Texture Studio doors not opening - by Kevinas - 2021-03-05, 08:03 AM
RE: Texture Studio doors not opening - by Radical - 2021-03-05, 09:23 AM
RE: Texture Studio doors not opening - by Kevinas - 2021-03-05, 09:43 AM
|