How do I have a class blueprint call an event in a specific instance of another blueprint?
Hi New to blueprint scripting... here's my problem - I have several buttons. They are instances of a class blueprint that call an event in a different class blueprint. When the second finishes I need it to call an event in the specific instance of the first blueprint that called it. The buttons represent floors for an elevator. When the elevator blueprint finishes executing it needs to go back to the specific button instance to change its color. Help appreciated.
asked Mar 08 '17 at 10:48 PM in Blueprint Scripting
This might help, if I'm understanding what you want. On the event you call on your elevator class, and an input variable of the class of your Button blueprint. When you call the event on the elevator from your button, get a reference to self, and plug it into the event. (Right click, search for Self)
The elevator will now have a reference to the button that called an event on it.
In your Button class:
In your elevator:
answered Mar 09 '17 at 12:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here