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"

hud: cast failed like realy the text is blanc

when the widget comes up the binded text is blancalt text

Product Version: UE 4.12
Tags:
screen.png (154.4 kB)
more ▼

asked Jul 25 '16 at 01:38 PM in Blueprint Scripting

avatar image

WDR_Darx
54 7 9 14

avatar image CometGoat Jul 25 '16 at 03:01 PM
  1. What your function "Get Text 0" is doing is casting a Player Controller to a Player Character (which will fail every time).

  2. Once you change either "Get Controller" or "Cast to Character" and it no longer fails, the node path will immediately end without doing anything, as a "Return Node" acts as a full stop - it lets Unreal Engine know that a particular node path doesn't need to do anything else.

  3. Is this script on the widget?

avatar image WDR_Darx Jul 27 '16 at 02:35 PM

yes but please give me a solution

avatar image Tom Shannon Jul 27 '16 at 02:46 PM

You can't cast from The Player Controller to the Character, they are very different classes. You should be using Get Player Pawn to get the Pawn (Character Classes are based off the Pawn class) https://docs.unrealengine.com/latest/INT/BlueprintAPI/Game/GetPlayerPawn/index.html

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

0 answers: sort voted first
Be the first one to answer this question
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