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"

Can't call character functions in widget

Hello, I'm creating a widget that calls a function from the character. It should display another widget with custom properties. But when I run the game it only shows a plain widget (with no custom properties) and I've found, that the casting fails every time. Does anybody know what the problem is? Thanks in advance alt text

Product Version: UE 4.22
Tags:
more ▼

asked Jun 17 '19 at 03:14 PM in Blueprint Scripting

avatar image

Redwoodstudio
21 1 1 4

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

1 answer: sort voted first

Is ‘player’ class actually a pawn? If it inherits from the pawn class you need to use ‘get player pawn’ not player character. If it inherits from an actor base class then you will need other methods to get the appropriate reference. Check out video #1 and #25 in the link below for a more in depth explanation of what I mean.

https://www.youtube.com/playlist?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

more ▼

answered Jun 17 '19 at 03:35 PM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image Redwoodstudio Jun 17 '19 at 03:44 PM

The casting now works properly. Thanks for the solution

(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