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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Casting failing

I am working on a healthbar for the player, my cast is failing every time, and am not sure why, attached is the blueprint for my casting. The Casting is bound to the progress bar, but the progress bar is not showing any depletion of health but the health variable is changing within the blueprint as I play the game.

alt text

Thanks for any help--

Product Version: UE 4.12
Tags:
casting_error.png (192.0 kB)
more ▼

asked Aug 20 '16 at 03:24 PM in Blueprint Scripting

avatar image

Alpha Cats
109 7 12 26

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

2 answers: sort voted first

If PhysicsBallBP is NOT the actual player character pawn, then this will fail everytime. Ensure that PhysicBallBP is set in GameMode also and that it is being controlled.

more ▼

answered Aug 20 '16 at 03:29 PM

avatar image

VictorBurgos
2.4k 60 27 111

avatar image Alpha Cats Aug 20 '16 at 04:57 PM

I have PhysicsBallBP set in the GameMode as the pawn. The tutorial I was following was https://www.youtube.com/watch?v=5NuLsycksvU, my error occurs around the 8:00min mark. alt text

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

Well, I didn't read your question properly the first time. But, you said you were using a progress bar. You need to use a percentage for progress bars since it is 0 to 1.

If you want, I can stream this live and help you real quick.

more ▼

answered Aug 20 '16 at 05:03 PM

avatar image

VictorBurgos
2.4k 60 27 111

avatar image Alpha Cats Aug 20 '16 at 05:18 PM

The first image is the function bound to the percent of the ProgressBar, so isn't that giving to progress bar its Percentage info?

avatar image VictorBurgos Aug 20 '16 at 05:38 PM

Nah, you would think it was automatic, but it's not. You need to do the proper math. You can either divide it(the HP) by 100 or multiply by .01. the choice is yours.

avatar image VictorBurgos Aug 20 '16 at 05:38 PM

If this answers your questions, please upvote and mark as answered, so we can resolve it.

avatar image Alpha Cats Aug 20 '16 at 07:57 PM

That seems to be unsuccessful. I altered the blueprint and didvied the HP by 100.alt text

Event graph as reference. alt text

(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