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 Designate Level Actor as BP Node Target in Function Library?


I have extended the Level Actor class to add custom C++ code and nodes to the Level BP. Now, I want to move some of the Level BP functions to a Function Library.

The custom function nodes require a target. In the Level BP the target was 'Self'. Now, in the Function Library, I need to give the pin something other than 'Self'. Ideally, a reference to the extended Level Actor.

It seems that I could use an event and delegate for this, but in the interest of efficiency, I would prefer just to make a function call.

How can I do this?

Product Version: UE 4.20
more ▼

asked May 14 '19 at 06:27 PM in Blueprint Scripting

avatar image

196 4 4 11

avatar image Lardo Deepdelver May 15 '19 at 11:17 AM

do you just want to make a function that takes your custom level Actor?

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

1 answer: sort voted first

You need to pass some form of "Context" object on which that function will run or from which you can get access to your extended LevelBP class, or pass it directly as an argument of your function. It might be wise to cast it to your LevelBP class before using it and trying to call function on. Your "Self" was actually pointer to itself, in C++ it would translate roughly to "this" keyword.

more ▼

answered May 15 '19 at 08:38 PM

avatar image

Vertex Soup
288 4 22 16

(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