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?
asked Sep 12 '14 at 09:21 PM in Blueprint Scripting
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
Follow this question
Once you sign in you will be able to subscribe for any updates here