Blueprint not being called???


Does anyone know why this isn’t being called? it’s connected to an ‘event beginplay’ straight into the ‘cast to magiccharacter’ so by all rights should be called? surely?? no? wat?

i placed a print string at the end and it doesnt get called. I placed one just after ‘cast to magiccharacter’ and it doesnt get called. i place one just before the ‘cast to magiccharacter’ and it does get called?

it seems it’s something to do with the cast but i just can’t figure it out, the solution defininately isn’t obvious. I’ve spent a good 7-8 hours diagnosing bugs and this one just won’t budge.

any input would be appriciated as i’m this close ( - ) to scrapping the whole thing.

thanks

Have you dropped the blueprint in the world?
And hook up a print string to cast failed to see if the cast is failing.

I will try this soon, the actor is instantiated, i even added a few second delay after beginplay to ensure that, but ill try the isValid thing soon.

I’ve only just got back to this project, turns out you where right! The player wasn’t being instantiated but the blueprint was calling it.

Here was the problem:

I have a character selection menu where you can choose between a few characters. before you choose a character, there are no characters in the level that can be called by the blueprint.

However, as the blueprint is being called on BeginStart, it was being called before a character had been selected, therefore couldn’t find a character. If that makes sense

Thanks a ton man.