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. 

[Closed] Need help trying to get owner and character in playerstate

I am trying to get the player character in blueprint in my playerstate. I can get it in c++ with out problems but the cast in blueprint always fails.

Here's the c++ thing I am trying to accomplish in blueprint in my playerstate class

 AController* OwnerController = Cast<AController>(GetOwner());
 if(OwnerController != NULL)
     AFirstPersonCharacter* OwnerCharacter = Cast<AFirstPersonCharacter>(OwnerController->GetCharacter());
     if (OwnerCharacter != NULL)

Here's the Blueprint function which always fails at the firstpersoncharacter cast alt text

I am fairly sure I am looking at this wrong but I've been at this for many hours over quite a few days and could just have tunnel vision.

thanks MK

Product Version: UE 4.8
castproblem.png (67.4 kB)
more ▼

asked Jun 16 '15 at 10:43 PM in Blueprint Scripting

avatar image

1.2k 50 24 51

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

The question has been closed Jun 18 '15 at 06:39 AM by DJMidKnight for the following reason:

The question is answered, right answer was accepted

0 answers: sort voted first

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question