12.01.2014, 01:55
Hello, I am trying to figure out how to use Smooth Rotation, my script currently uses MoveDynamicObject to move gates, gates are a dynamic system in game.. Should I switch it to MoveObject? Help is appriciated
native MoveDynamicObject(objectid, Float: x, Float: y, Float: z, Float: speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);
Hello, I am trying to figure out how to use Smooth Rotation, my script currently uses MoveDynamicObject to move gates, gates are a dynamic system in game.. Should I switch it to MoveObject? Help is appriciated
|
stock RotateObject(objectid, Float:rX, Float:rY, Float:rZ)
{
if(IsValidObject(objectid))
{
new Float:Pos[3];
GetObjectPos(objectid, Pos[0], Pos[1], Pos[2]);
CreateObject(objectid, Pos[0], Pos[1], Pos[2], rX, rY, rZ, 300.0);
}
}