if rot_type == "back" then
local progressrot = (getTickCount() - rotTime) / 1500
rot = math.floor(interpolateBetween(0, 0, 0, 0, 0, 200, progressrot, "InQuad"))
if(progressrot > 1) then
rot_type = "foward"
rotTime = getTickCount()
end
else
local progressrot = (getTickCount() - rotTime) / 1500
rot = math.floor(interpolateBetween(0, 0, 200, 0, 0, 0, progressrot, "OutQuad"))
if(progressrot > 1) then
rot_type = "back"
rotTime = getTickCount()
end
end
dxDrawMaterialLine3D(x+size, y+size, z+0.04, x-size, y-size, z+0.04, marker, size*3, tocolor(r, g, b, 155), x, y, z+(rot/1500))