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"

Detect variable change across blueprints?

I'm new to Blueprints so what I'm trying to do might be very simple. Bear with me.

All I want to do is have an event fire off when a variable changes. But I don't know how to trigger that event.

I have 2 Blueprints. In one Blueprint I'm changing a variable that belongs to the other Blueprint (via Blueprint comms).

That works, the variable changes when I test play and press a key I assigned. However, I'm not sure how to have it do anything once it changes. Basically I don't know how to properly start the events inside the second blueprint if I change the variable in the first Blueprint.

If I try an event begin play node it fires off the second the game starts, which I don't want. I want it to start when and only when the variable changes.

I guess what I want is a sort of event begin play when a variable changes node :P Otherwise I'm not really sure how to START something.

Any ideas what I'm missing?

Product Version: Not Selected
more ▼

asked Sep 12 '14 at 09:21 PM in Blueprint Scripting

avatar image

45 20 21 23

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

1 answer: sort voted first

Create a custom event inside the blueprint and connected to a process that you want to be happen. In another process line just call that event. The picture shows an example. And if you want to know more about events, have look to this video

alt text

capture.png (170.6 kB)
more ▼

answered Sep 12 '14 at 10:33 PM

avatar image

319 12 9 36

avatar image Anslem Sep 13 '14 at 03:55 AM

Thanks so much!

I had to play with it a bit but that worked. I always saw that custom event node hanging around in the palette but it never crossed my mind that I could use it like that.I'll go through those videos as well.


avatar image FloatDeltaTime Mar 15 '18 at 11:21 PM

Is there a way to detect this between a class blueprint and a class blueprint rather then a level blueprint and a class blueprint like in the video?

(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