Domingos MTA Posted October 24, 2017 Share Posted October 24, 2017 Does anyone know how to make a marker like this? http://prntscr.com/h1iyg4 Link to comment
Domingos MTA Posted October 24, 2017 Author Share Posted October 24, 2017 53 minutes ago, Randomly said: dxDrawLine3D but how do I make the lines in the cylinder format? Link to comment
WorthlessCynomys Posted October 24, 2017 Share Posted October 24, 2017 Just like dxDrawCircle but in 3D Link to comment
ShayF2 Posted October 25, 2017 Share Posted October 25, 2017 I think it would be better to replace a model that doesn't have collisions and detects when your player hits it. Much more simple than coding 40 lines of dx. 1 Link to comment
Moderators IIYAMA Posted October 26, 2017 Moderators Share Posted October 26, 2017 (edited) Here use this one, I created it a month ago. (it does also have a rotation effect, which makes it more alive) P.s 20 lines =D function dxDrawCircle3D(x, y, z, radius, width, color) if type(x) ~= "number" or type(y) ~= "number" or type(z) ~= "number" then return false end local radius = radius or 1 local width = width or 1 local color = color or tocolor(255,255,255,150) local startRotation = (getTickCount() % 5000 / 5000) * 360 for i=1, 18 do local pR1 = (((i-1)*20 + startRotation) * 3.141592653 * 2)/360 local pR2 = ((i*20 + startRotation) * 3.141592653 * 2)/360 local startX, startY = x + math.cos(pR1) * radius, y + math.sin(pR1) * radius local endX, endY = x + math.cos(pR2) * radius, y + math.sin(pR2) * radius dxDrawLine3D(startX, startY, z, endX, endY, z, color, width) end return true end Edited October 26, 2017 by IIYAMA 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now