Does Anyone Know why the Cast is Failing?

I’ve Been Fallowing the Tutorial series by Alamar’s Dev Domain and I’m on the part 9 shooting projectiles video but when i try to run the blueprint in the editor it wasn’t doing anything so after adding a print string to the cast in the failed part and getting the message to appear when running in the editor. does anyone know what is causing this to happen?
screenshot of the event graph

1 Like

I don’t know why, but the node you’re plugging into the cast, is not supplying anything that is related to the third person character. I suspect it’s supplying nothing, best to put a print string there :slight_smile:

hi i put a print screen there it seems to be calling the BP_PlayerState_C_0 blueprint

1 Like

Ok, so that’s not in the player character inheritance hierarchy, hence the problem.

Casting can only take you down the inheritance tree.

Is that definitely the node they’re using the in tutorial? And if yes, are you working in the correct blueprint?

Apart from that, I have nothing, I’m afraid :rofl:

Found the error it wasn’t in the blueprint but in the c++ code for the character i had the playerstate and character swapped in the initialize function

1 Like

That’ll do it :smiley: