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"

Cast to PhysicsBallBP problem

Hello, I am creating my Healthbar system and I can´t cast to PhysicsBallBP, don´t know someone how to fix that?

That image is from HUD and there is error with Cast to PhysicBallBP.

alt text

Product Version: UE 4.15
Tags:
more ▼

asked Mar 15 '17 at 01:51 PM in Blueprint Scripting

avatar image

Renzotom
24 3 7 10

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Renzotom,

Try using GetPlayerPawn instead of GetPlayerCharacter. The reason for this is because PhysicsBallBP is not based on Character, it is based on Pawn. So you won't be able to cast a Character reference into something that expects a Pawn reference.

Have a great day

more ▼

answered Mar 15 '17 at 06:27 PM

avatar image

Sean L ♦♦ STAFF
43.9k 485 152 440

avatar image Renzotom Mar 16 '17 at 10:50 AM

Now work, thank you very much!

And little question, when I will have more characters, but same pickable object for health for all, I must create that for all objects, or there is something for Cast to all_objects_from_the_list ?

And can you see my other questions please?

(comments are locked)
10|2000 characters needed characters left
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