[Closed] Simple Radar on HUD to detect players?
Until today I have not found any tutorial on youtube teaching to create simple radar or that shows at least the graph, the only free radar project only renders the target in a unique texture that does not work in multiplayer mode
Can someone upload a blueprint with a simple graph?
The question has been closed Mar 08 '19 at 11:39 PM by TheSubZer0 for the following reason:
Problem is not reproducible or outdated
As for detection, you can do something like this:
answered Dec 15 '18 at 03:38 PM
Basic logic for this is quite simple. Transform the world 2D location of the actors you wanna show in the radar, to the radar.
The radar would be in UMG, and it's 0.0 is on the top left of the screen.
Say an actor is at "X = -100, Y = 500", just divide that, say by 100, and now they have a -1, 5 coordinates. which you can use to place a small image on its relative coordinates. You would just have to offset the scaled coordinates by the location of the radar on the screen.
Now, bear in mind that of all things, a radar is actually pretty expensive on the CPU and you should most definitely do the computing parts on C++ on the long rung, unless you start with a "lazy" radar that doesn't do everything on a single frame, but you could still get a noticeable frame drop for that. You still do the visual parts on UMG.
Follow this question
Once you sign in you will be able to subscribe for any updates here