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 to make a function output node return a Desired Object Refrence Type from trace hit result?

I want a function's output to be of a specific object reference type (ORT). I'm struggling to figure out how to do this in blueprints, as line trace (out hit hit actor) returns a generalized Actor ORT. I can check that the actor hit is of a specific type, which is okay for some defensive programming and was the solution for a similar question asked here. I have a bunch of other functions that all have the input the Desired ORT.

Basically, I'm looking for a way to make sure that hit actor is the Desired ORT and then have a output node be of that desired object reference. Any ideas on how to do this?

alt text

Product Version: UE 4.22
Tags:
capture.png (94.6 kB)
more ▼

asked Apr 14 '19 at 03:06 PM in Blueprint Scripting

avatar image

Alunnite
8 1 3 5

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

1 answer: sort voted first

Hi you need to cast first to the actor in your case "BP Platform Base"

more ▼

answered Apr 14 '19 at 03:12 PM

avatar image

lkav
1.3k 9 5 10

avatar image Alunnite Apr 14 '19 at 03:22 PM

Well that was stupidly simple. Thanks

(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