so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
Best Answer Inspired , 12 November 2015 - 05:05
For the general drawing of 2D circles you can use:
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end endGo to the full post »
so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
ilovesona, on 30 Oct 2015 - 04:01 AM, said:
DrawText("o" ....so sad someone lock my post
http://gamingonstero...minimap-broken/
as title
i want draw a circle like this
WorldToMinimap only return x, y
but DrawCircle need x,y,z
Get Screen Resolution and u have the Map position
not yet. i try to make one weekend maybe
Something like Set 2 corners(upper left and down right corner of the minimap, by left click) once u start the script and project the 3D environment to this "new" set rectangle crated by these 2 corners.
Transform the 3D coordinate of an Unit to a 2D coordinate of this rectangle u set. U need to do math.
Maxxxel, on 02 Nov 2015 - 7:06 PM, said:
Something like Set 2 corners(upper left and down right corner of the minimap, by left click) once u start the script and project the 3D environment to this "new" set rectangle crated by these 2 corners.
Transform the 3D coordinate of an Unit to a 2D coordinate of this rectangle u set. U need to do math.
Or you use WorldToMinimap
Inspired, on 02 Nov 2015 - 11:17 PM, said:
Or you use WorldToMinimap
i thought this isnt working thats why he/she asked?
Just wait for me to release one api like that, there's nothing else better left to do.
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end end
Inspired, on 12 Nov 2015 - 5:05 PM, said:
For the general drawing of 2D circles you can use:
function DrawScreenCircle(x, y, size, width, color, quality, elliptic) local quality = quality or 1; local elliptic = elliptic or 1; for theta=0,360,quality do DrawLine(x + size * math.cos(2*math.pi/360*theta), y - elliptic * size * math.sin(2*math.pi/360*theta), x + size * math.cos(2*math.pi/360*(theta-1)), y - elliptic * size * math.sin(2*math.pi/360*(theta-1)), 1, color) end end
hmm since we have DrawCircleMinimap api already....i think i don't need those math anymore
0 members, 1 guests, 0 anonymous users