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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Comunication between blueprints and level blueprint?

I have created a blueprint from mesh (lets call it "box"). Inside Event Graph I made timeline to move that mesh in Y direction (by vector track). Then on my Level Blueprint I have a SpawnActor (from class...) to spawn my "box" blueprint (triggered by Tick Event with Delay). Everything goes fine, untill i want to controll some parameters, like play rate of spawned instance of my "box" blueprint.

Quick look into tutorials and I found video tutorial where someone explained how to controll blueprint (move it in Z direction) - but with Buleprint existing on level, not an instance spawned when playing.

I checked documentation and I found explanation of using Event Dispatchers. Then I checked Blueprint Communication level from Content Examples - Point 2.3 of that level looks like answer for my question, but its hard to study step by step and little confusing - really ;)

My question is: How to comunicate between Level Blueprint and spawned items (not existing in editor)?

  • want to for example change play rate of spawned box to move it faster when player will press "X" key on keyboard, and I want to set Event for pressing "X" in level blueprint, not in "box" blueprint.*

Product Version: Not Selected
more ▼

asked Mar 26 '14 at 07:36 PM in Blueprint Scripting

avatar image

48 5 9 12

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

1 answer: sort voted first

So you have some moving objects that you want to be able to speed up while X is held. That should be easy enough.

Off the top of my head, have you tried using the "Get All Actors Of Class" node in your level Blueprint? That will return all of your "Box" actors, assuming that's what you set for its input. You can then talk to all of them at once (using a ForEach loop), or select one from the output array. You would then want to make sure you cast the array element to your desired class (just to make sure you've got the right thing and give you access to its variables).

alt text

Start there, see if that gets you what you need. :)

getallactors.png (59.7 kB)
more ▼

answered Mar 26 '14 at 08:16 PM

avatar image

ActualZak STAFF
288 9 4 18

avatar image GikaH Mar 29 '14 at 11:01 AM

Thank You very much Zak. That's solution for my problem!

(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