Casting fails after collapsing to function?

Maybe try deleting and remaking the cast node and DoONce node. I’ve had some weird referencing issue when nodes were collapse. Worth a try, cause it looks fine at first glance.

Hello,

I have a weird issue with blueprints. This setup works (notice the “Cast To MyCharacter node” connected to the “Game Over Screen” function):

While This one does not (I simply collapsed all the nodes after “DoOnce” into a function):

Cast to MyCharacter fails. Why?

Another possibility is the input variable to the function.

Make sure both “Target” in the GameOverScreen function and “MyCharacter” in the GameOver function are of the type MyCharacter, not just a base Character.

Probably is, just thought I would mention it in case :slight_smile:

No luck. Casting still fails.

“MyCharacter” in the GameOver is set to the proper type, but “GameOverScreen” is a function in the MyCharacter blueprint, so the target is automatically MyCharacter. It still doesn’t work.

Does anyone have any other ideas :slight_smile: ?