Hello everybody
I hope I am doing nothing wrong here, since this is my very first post that I’m creating myself.
Until now I somehow always managed to find a way getting things to work watching YouTube videos or reading other posts on here but now I got stuck. I’m not a native english speaker, but I’ll try my best to describe my problem as precice as i can and hopefully some of you guys can help me
Right now it is about “picking up a Flashlight” that I can only toggle on and off when the Flashlight_Actor is destroyed.
(I need to GET “PlayerHasFlashlight Bool” from “Flashlight_Blueprint”… to my “PlayerChar_BP”)
I already set everything up, but I cant figure out how to GET a “SET VARIABLE” in an other Blueprint, than where I createt (SET) it. I could find a lot of different things about this, like the use of “cast to”, “make reference” or “make Variable Editable” but It was all quite different than what I expectet and I couldn’t get it to work. I am still pretty new to UE4 and I was just wondering if there is an easier way to do this. Just adding a “get VARIABLE” node in the other blueprint doesnt work for sure, but maybe something similar is possible?..
Not asking for someone to do my work, but maybe some of you have a good advice, a source, video or maybe even a book that you can recommend me, to learn this.
It is important to me, to not just fix THIS specific issue. I really want to understand how this kind of communication works.
I’m looking forward to your responses
Greetings from Germany, and have a nice day.
Oh my god! It worked with the first try! x_x
You are my hero!
Thank you soo much! : 3
Because of you I now also understand how “casting to…” works !!!
Just have to figure out now how to cancel On/Off sound when I DontHaveFlashlight, but I guess I will be able to do that
Here 2 more screenshots for all the people who experienced the same problem
And again, THANK YOU A LOT, Sir! :3!
(Can I somehow give you a thumb up, or something like that to support you?) Would be happy to do so
fixing the Flashlight-Sound Issue was easy. Just had to delet my first “input action flashlight event” and everything that was connected to it
Cheers to every dev out there. Hope it helps.