x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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. alt text

I want the widget switcher to change when i kill the enemy so right after the (destroy actor) of my enemy. alt text

Thank you.

Product Version: UE 4.16
Tags:
helpue4-2.jpg (81.6 kB)
help-ue4-3.jpg (93.5 kB)
more ▼

asked Nov 20 '17 at 03:19 PM in Blueprint Scripting

avatar image

OniricMaster
26 2 2 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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. alt text

Hope it will help;)

image-1.png (238.4 kB)
more ▼

answered Nov 20 '17 at 05:46 PM

avatar image

Grot13
41 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thanks for the answer, that solved it.

more ▼

answered Nov 21 '17 at 12:53 AM

avatar image

OniricMaster
26 2 2 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question