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"

How do I raycast in blueprints?

Hi! I am currently trying to make a gun using Blueprints, however I cannot figure out how to Raycast with BP! This would be a nice function to have also, for those of you at epic.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 03:33 AM in Using UE4

avatar image

ue4-archive ♦♦ STAFF
49.7k 3647 1972 9099

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Dear Evan,

Hi there!

What you want are traces I believe

single line trace = raycast

Step 1

turn off context sensitive

Step 2

alt text

traces.jpg (68.8 kB)
more ▼

answered Mar 11 '14 at 03:33 AM

avatar image

ue4-archive ♦♦ STAFF
49.7k 3647 1972 9099

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

Hi Evan,

Rama is correct that Line Trace is the solution you are looking for. I hope this helps, let us know if you run into issues.

Cheers!

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

Awesome! Thanks :) that helped out a lot

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

please check off the check mark next to my answer so everyone knows this issue is solved

I am glad it worked out for you

Yay!

Rama

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

:) did it!

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

hahaha, each time you reply though, it removes the answered status

so you have to check it, and then just leave it alone

hee hee

a way to show that you like an answer after it is greened is to click the up arrow

this is also a good way to show which answer among several you found most helpful

:)

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:33 AM

lol, okay, this time I checked it after I posted the comment ^.^

(comments are locked)
10|2000 characters needed characters left
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