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 can I send a variable (VectorArray) from the Level BluePrint to a Pawns' Actor Component BP?

My setup looks like this:

I have successfully dispatched a vector-array variable to my Level Blueprint. Now I need to send the same variable from the Level Blueprint to an ActorComponentBP that is attached to a Pawn Actor.

Alternatively I could send it directly to the Pawn BluePrint instead of the attached ActorComponentBP. I could also access the same LevelBP-Variable from within the Actor Component BP. ..whatever works.

My latest attempt includes a Custom Function within the ActorComponentBP that is called from the level BP. I'm not sure what to connect to the object input of the caller node though! (It does not seem to accept anything I try to plug in.) I think that might be my problem.

I have read about and tried many things but so far nothing worked. What am I missing?

Thank you!

Product Version: Not Selected
more ▼

asked May 11 '15 at 06:50 AM in Blueprint Scripting

avatar image

175 4 8 10

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

1 answer: sort voted first

Hi Mate

Make a Variable in your Actor BP to store the Data

In Level BP. from Event Begin Play, "Get All Actors Of Class" - Choose your Player BP, "GET", "Cast to Player BP" (This should come up when you start typing CAST if you choose your Player BP ealier), then Promote to Variable.

Drag the Variable, from that, call your Variable in your character BP - SET, and set it with the Desired Variable. Example of cast below, I am just casting to Teleport BP instead in picture.

Example Image


more ▼

answered May 11 '15 at 08:19 AM

avatar image

1.7k 74 38 110

avatar image Joachim May 12 '15 at 01:14 AM

Thank you very much for taking the time to help me.

I did what you suggested and it finally sent the variable from the LevelBP to my PawnBP -yay! I have attached an image to show the two working blueprints. Please let me know if there's anything fishy about them.

My problem was the "CastTo..." node. I did not and still don't understand why I need it even though I watched all the BP communications tutorials. Also I don't quite get why the CustomEvent node won't accept most of the blue object inputs I tried to connect with it. How do I know, what type of object it needs?

Another difficulty I generally had with communicating between **ComponentBP*s or GameMode BP*s is, that most of the time I'm not able to call Custom Events or call the Event Dispatcher. They seem to be unable to call global stuff.. or there's something I still don't get. :)

Thanks again Narg! Jay

alt text

avatar image spacetackle Sep 11 '17 at 10:42 AM

Followed this precisely and I just get - no need to cast to taxibp. target is already a taxibp :(

(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