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"

enemy health bar variable, failed to find property

Enemy health is working, but the health bar isn't. I've tried casting the character health variable to the return node by binding the variable. It was a no go. Now I have a float that is defined in the UMG graph handling the return value.

The health bar is added to the enemy AI Character as a component. However, when I try to cast to the enemy health bar. The set variable has the message,"failed to find property" in the variable details.

if I change the Health Bar filler value manually, the health bar percentage updates, but I cant get the cast to work for some reason. I've been all over the forums and the Answer hub for the last two days trying to figure this out to no avail. Any help would be appreciated. alt text

alt text

Product Version: Not Selected
Tags:
casttoumg.jpg (343.8 kB)
more ▼

asked Apr 20 '15 at 08:21 PM in Blueprint Scripting

avatar image

fluxist8070
41 6 6 9

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

2 answers: sort voted first

Here is a video by tesla that solved the issue. I'm on 4.7.6 and it worked out just fine. https://www.youtube.com/watch?v=M7w9OfPRpKM

more ▼

answered May 09 '15 at 12:15 AM

avatar image

fluxist8070
41 6 6 9

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

Is your Helathbar a component, or an Actor?

Trying adding a ChildActor Component, and then set it's Actor to your Health Bar. When using it, get the ChildActor, get it's Actor, then cast it to your health bar.

Also, did you try dragging off from your HelathBar component onto the graph?

more ▼

answered Apr 20 '15 at 08:40 PM

avatar image

mikepurvis
2.5k 101 66 260

avatar image fluxist8070 Apr 20 '15 at 09:37 PM

Well, it was worth a shot. I'm using a UMG as a widget component in my AI Character BP. I tried what you described. Ended up with this. Still can't find the property. I'm also using it as a 3D instance of a blueprint, which is flagged as experimental. Thanks for the response btw!

alt text

childactorumg.jpg (344.0 kB)
(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