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"

TPS Shoot at Crosshair

I feel like I have looked everywhere on the internet for this information, however I have come up blank.

I'm looking for a way to have a third person character shoot at a crosshair that is fixed on the screen and is accurate. A simple concept, I'm sure, but I haven't been able to find out how this is done nor any tutorial that seems to fit the bill. This is honestly maddening.

Product Version: Not Selected
more ▼

asked Apr 29 '15 at 04:02 AM in Blueprint Scripting

avatar image

5 4 6 7

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

1 answer: sort voted first

So, you want your character to shoot a projectile to your mouse position?

It would be the exact same as the movement in the TPS project. Instead of making your character move on click, have him shoot a projectile at the Mouse Hit Result.

If you meant having your character shoot at a target, it's even simpler. Choose the target you want to shoot, make your character face said target, and spawn projectiles.

I hope I understood what you asked.

more ▼

answered Apr 29 '15 at 04:59 AM

avatar image

1.5k 65 132 103

avatar image WhisperedLullaby Apr 29 '15 at 05:43 AM

It seems as though you're really close. I'd like to create a UMG cross hair that is centered on the string and then take my line trace I'm using as my bullet's and have that line trace hit the cross hair.

avatar image kwaka-dog Apr 29 '15 at 07:15 AM

https://www.youtube.com/watch?v=FwVYXlsTPD4 Check this link out should help you out. with line trace center camera location.

(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