x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[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?

Product Version: UE 4.21
Tags:
more ▼

asked Dec 14 '18 at 07:28 PM in Blueprint Scripting

avatar image

TheSubZer0
114 8 13 17

avatar image TheSubZer0 Dec 14 '18 at 11:25 PM

?_

avatar image rasamaya Dec 14 '18 at 11:38 PM

Building multiplayer is fairly complicated. I would not use hud class. I would be using umg. You want to see how to query world transforms of all ai and real players? Or do you know that and want to drive images in the radar? Its a system. I think there are 5 or more in the market, i would just reverse engineer one if i couldn't figure it out.

avatar image TheSubZer0 Dec 15 '18 at 01:38 AM

Actually it's very simple, just to detect all actors of the type: third person character except me;) but I do not know how to do this because it's complex even in an offline game and I do not intend to pay $ 34 in a project, just to do reverse engineering of a widget and some graphs here and there ...

avatar image rasamaya Dec 15 '18 at 02:44 PM

Well a bunch are a lot cheaper. Try under $10. Hmm so it's very simple but too complex? When I have some extra time to donate I may come back and provide an answer.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Mar 08 '19 at 11:39 PM by TheSubZer0 for the following reason:

Problem is not reproducible or outdated


2 answers: sort voted first

As for detection, you can do something like this:

alt text

This will see all the actors in the field of view (in my case it's 90 degrees), regardless the distance to them and their Z location. You can add some additional logic to see only enemies within some range, or not to see enemies a lot higher/lower than you.

As for radar display, when you know the angle and the distance, calculating where they should be displayed on the radar will require a bit of basic trigonometry.

radar.png (224.8 kB)
more ▼

answered Dec 15 '18 at 03:38 PM

avatar image

Tuerer
1.8k 12 7 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Dec 15 '18 at 03:18 PM

avatar image

Evigmae
1.7k 8 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question