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"

Crosshair that follows actors

I've been trying to find a way to do this forever, but the fact that literally nothing I'm doing seems to work is maddening. Basically, in my game I want a box crosshair to appear and follow interactive/pawn actors whenever the player gets close to one. Is there any way to implement this? I'd appreciate any help anyone can offer.

Product Version: UE 4.14
Tags:
more ▼

asked Jan 16 '17 at 07:09 AM in Blueprint Scripting

avatar image

Aethryx
23 3 5 9

avatar image Aethryx Jan 17 '17 at 02:25 AM

I figured it out! I set up a trigger volume on actors to create a crosshair widget with the screen position set to the actor location in event tick.

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

1 answer: sort voted first

You could use vector length to check if a actor is within a certain range. Then when he is, you can draw a UMG widget on the screen location of where that actor is.

Like they discuss in this topic: https://forums.unrealengine.com/showthread.php?50130-UMG-Tutorial-Placing-Widgets-Over-Actors-In-Screenspace

more ▼

answered Jan 16 '17 at 01:03 PM

avatar image

Amsanity
689 20 5 50

avatar image Aethryx Jan 16 '17 at 01:55 PM

That thread says at the top that it's way out of date, so not sure if it would be helpful :\

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question