Hello,
Im curious to make a compass. Does someone have a good tutorial or some usefull links that I can use.
Should be a compass that needs to be coded like the compass from player unknown battleground with all the nummers etc.
(on top) Google
Thanks in advance!
look at this Steam Workshop
Well, there's a few things you're going to need to figure out.
Determining which way the player is facing
Drawing the numbers and directions
Making them fade
You can get the way the player is facing easily enough.
local dir = LocalPlayer():EyeAngles().y
The numbers at the top is a bit more tricky. There's probably an efficient way to do it, but I would just map each cardinal direction to an angle like 0 is north, 90 is east, etc. Then offset them based on the look direction above.
Then, when drawing one of the elements, compare its X position to the center of the screen and set its transparency appropriately.
Sorry, you need to Log In to post a reply to this thread.