Cast to playerstate always fails from character blueprint
Im trying to get the player state in my character blueprint but it keeps on failing. I've tried adding a delay before the nodes for casting it and i've tried accessing it from the HUD widget (as that's the only thing using the data from it currently). The world settings and project settings are all correct with the right player state class.
It is running off the BeginPlay node in my character BP
Im out of ideas for what could be causing it as I can get into the game state just fine and access the variables in that but not the playerstate.
asked Apr 25 '17 at 09:17 PM in Blueprint Scripting
I didn't have this issue, I have been able to get the player state and also call a custom event on it.
I think the issue you are having is that you haven't set the player state in the game mode.
If you haven't set the player state in the game mode than your player state will be the default player state instead of your custom Trail_Player state.
answered Apr 26 '17 at 04:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here