Widget Switcher help
Hello, im trying to have my objectives change whenever something happens. In this specific case im trying to change the current objective when i kill an enemy(in this case its just a box). Ive recently found out about the widget switcher but i cant seem to get it to work. Currently what I have is a game mode elector (blueprint class) this is where the game creates the ui of the objectives. I then have an enemy which i want it so that when he is killed the objective changes.
Here is the blueprint the sets up the objectives.
I want the widget switcher to change when i kill the enemy so right after the (destroy actor) of my enemy.
asked Nov 20 '17 at 03:19 PM in Blueprint Scripting
Hello! I 'll try to answer if I have well understood. When you create your widget , promote it to a variable juste after, so you will have a reference to it for further use.
Then when you kill the ennemy, or whenever you want, simply access the widget switcher and set it's active index.
Hope it will help;)
answered Nov 20 '17 at 05:46 PM
Thanks for the answer, that solved it.
answered Nov 21 '17 at 12:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here