Hell-Mate Posted March 3, 2014 Posted March 3, 2014 Hello community ,, I just saw CIT server marker and i would like to know how to create on like this instead of the normal marker. any one can help ?
myonlake Posted March 3, 2014 Posted March 3, 2014 And what exactly is this Cit marker and what does it do?
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 it do just the same what any marker do, but the difference is just how it look like. i mean another image + another shape
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 okay, here is a pic > or http://i.imgur.com/WAOXvKt.jpg
WhoAmI Posted March 3, 2014 Posted March 3, 2014 You have to use DX functions, or just find similar object and create invisible marker on it.
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 You have to use DX functions, or just find similar object and create invisible marker on it. No no. its not working like that because when im far a bit from the marker i see the normal one but when im near i see the one like on the pic ( getDistanceBetweenPoints3D ). i think i can change marker object with txd workshop ?
myonlake Posted March 3, 2014 Posted March 3, 2014 That's made with dxDrawLine3D. You have to use that in combination with mathematical calculations to make it work. I suppose you could change the texture too, not sure.
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 Never used such a function, any example ? or tell me how to create such a marker like on the pic with this function ?
myonlake Posted March 3, 2014 Posted March 3, 2014 (edited) To even begin using the function, you need to render it like so. local position = { startX = 0, -- x coordinate of the start position startY = 0, -- y coordinate of the start position startZ = 4, -- z coordinate of the start position endX = 10, -- x coordinate of the end position endY = 10, -- y coordinate of the end position endZ = 10 -- z coordinate of the end position } addEventHandler( "onClientHUDRender", root, function( ) dxDrawLine3D( position.startX, position.startY, position.startZ, position.endX, position.endY, position.endZ, tocolor( 245, 20, 20, 180 ), 3.25 ) end ) That marker is made with mathematical calculations to make it a circle. Simply just read more about trigonometric functions and test the formula examples, which you can find by searching on Google. The one you are especially looking for is the unit circle. Edited March 3, 2014 by Guest
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 Thanks myonlake, no problem with the normal marker. no need to :O my mind and learn some new mathematical calculations and trigonometric functions. so i will use the normal marker
myonlake Posted March 3, 2014 Posted March 3, 2014 I wonder what do you mean by "new mathematical calculations"? I recall all schools in this world teach people trigonometric functions, but okay. And they also teach how to calculate spheres, so yep... But, you're welcome.
Hell-Mate Posted March 3, 2014 Author Posted March 3, 2014 dude, when i was in school i always fail in math dont lemme remember these fuc**n days
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