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"

Confusing error message and other (probably) beginner questions

Hi, i am making my first game in unreal and it involves shooting lasers and bouncing them off mirrors alt text

but as long as at some point i don't point the lasers at a mirror (hit a wall) during play it gives me this error (i assume every frame the laser isn't hitting a wall) alt text

also i was wondering if there is a way to condense many blueprint nodes into one somehow becuase my code to create a start and end point for each end of each beam emmitter that makes up my lazer is huge, can i make it smaller or make it so do dont have to har code in each reflection. alt text

the ones in orange control the second reflection, so you can see how after reflecting a couple times this could get cumbersome.

Thanks in Advance!

Product Version: UE 4.16
more ▼

asked May 31 '17 at 01:49 AM in Blueprint Scripting

avatar image

Dimensional Dot

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

1 answer: sort voted first
  1. About error. You process hit result every time. But you need to use "return value" of trace function with branch, to understanf is something hit or not. And you need to cast hit actor to your mirror class, and process it only if cast successfull.

  2. To make few traces from mirror to mirror, you need to use recursive function. It will look like trace-> branch-> cast-> some processing-> call to this function. So it will call itself when trace hit mirror actor.

more ▼

answered May 31 '17 at 05:12 AM

avatar image

4.3k 81 19 104

(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