Cast to Character using Player State?
I'm currently trying to run a script ("Game Over Screen") from the MyCharacter blueprint (see picture below) and I need to cast to it, because I'm in the "NewGameState" blueprint (it's my custom Game State). The only information that I have is the Player's State. Is there a way to cast to a Character using a Player State?
There is no picture , but i think this is what you need
answered Aug 20 '15 at 10:49 PM
Player State does not know about Pawns.
Create a GameOver Event Dispatcher in the Player State for the trigger, and have the Character bind an event to it when possessed. This way you can have the Character react to an event in the Player State without the Player State having to know about the Character.
Event Dispatcher documentation: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/EventDispatcher/index.html
answered Aug 21 '15 at 03:11 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here