Hi I have this issue.
I have created a flashlight for my project made with UE 4.14. I have swithced to UE 4.17 because the continuous crashes of 4.14 was making me crazy. In 4.17 version i have no crashes anymore but my flashlight don’t works.
It seems it’s the spotlight that I placed into my character don’t works. I have finished this project to 99.99% except this issue. So please help me I am very frustrated.
It’s a simply spotlight placed into player character. I post two screens.
In 4.14 I activate the flashlight by clicking on a widget button. In 4.17 this don’t works, so I tried to activate it from F keyboard but still don’t works.
Can you be more specific how your flashlight works? Is it a mesh with point light component, is it c++ or BP, maybe a screenshot?
I dont think visibility is really the way you want to go. you could try using set hidden in game which should work for when your in the game. Alternatively you could just set the lights intensity.
Hi, this is a blueprint configuration I used from a tutorial in the 4.17 because the old configuration didn’t works.
What I post now is the old blueprint I had in 4.14 and until I used the old version It worked.
link text
link text
In the old version flashlight was called by a widget button called “luce”
luce just means light in italian. and now i looked at your profile and see your italian i feel dumb
in the second picture it looks like they are using a two stage system to turn on the light. first they “equip” the flashlight and make a widget visible. then by pressing the widget button they turn on the light. whereas with yours you always have the flashlight “equipped” . try using one of the methods in my last post they should work. just replace the set visibility node with a set actor hidden in game or a set intensity.
Yes I am Italian.
What you see in the second picture is a simple system to change button everytime I press it.
Once I press the flashlight button, flashlight turns on and button changes graphics.
However I will try the system you have suggested.
Thank u very much.
I tried with set visibility and set hidden but it still don’t works. I set light intensity to 100k but nothing.
if you put a print string just beyond the flip flop does it print anything? Also i just tested both the set hidden and set intensity methods in 4.17 and they both work so its not the script the issue lies elsewhere such as your character not receiving input.
I tried as you shown to me with no result. So I deleted my character then I created it again and now it works. So I create button activable flashlight as I had in 4.14 version and finally I resolved. Thank you very much!