Can you cleanly store Remove from Parent inside of a function?
I have a UI element that needs to disappear every time the player leaves combat. Normally when I need something to happen during the end of combat I stick it in the OutOfCombat function that you can see highlighted. This is useful because there are multiple ways to leave combat.
Now that I've added a UI element that needs to vanish I'm having problems. The setup that is screenshotted lets me remove the UI element whenever combat is manually ended. However, if the player sprints, or crouches, etc to exit combat the UI element remains. I tried to stick the "remove from parent" node inside the "OutOfCombat" function but that doesn't seem to work. Is there an easy way for me to put the remove from parent node inside of the function? The alternative seems to be manually adding the remove node to each instance of out combat which defeats the purpose of having a function in the first place.
asked Oct 18 '18 at 05:19 AM in Blueprint Scripting
It should work as is. Two notes:
Follow this question
Once you sign in you will be able to subscribe for any updates here