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"

Casting from widget is not working

Im trying to get the health from the enemy boss but i dont know what to put in

Product Version: UE 4.7
Tags:
1.png (86.1 kB)
2.png (16.8 kB)
more ▼

asked Aug 24 '15 at 06:38 PM in Using UE4

avatar image

kaosrio
58 4 7 14

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

1 answer: sort voted first

What it appears you are trying to do (can't really know unless you actually ask a question with words) is set the progress bar to dynamically change based off your bosses health? You've got part of it right but you need to "Bind" the progress bars event. Select the progress bar inside the designer, next to it's value click "Bind" and select "Create Binding"

In the "Get Percent" that you already have setup, simply save that to another variable called "BossHealth" or something, the simply plug the variable "BossHealth" into your new binding function.

Hope this helps! If it does, please accept the answer by clicking the check mark located under the arrows next to the answer. You'll know you did it right when the answer highlights green! Thanks.

more ▼

answered Aug 24 '15 at 06:51 PM

avatar image

jtsmith
1.4k 70 29 92

avatar image jtsmith Aug 24 '15 at 06:53 PM

Also worth noting that in the image you showed of your "Get Percent" function, the Cast is wrong. You can't simply put "dust_boss" as the object - it won't work. You need the instance of the boss in the world. What you ask for in it's current setup is for the BP which does not exist because it's not instantiated into the world. Get your instantiated dust_boss reference and pass that into the Cast node.

(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