I have a level that has a golf club and a screen. When the player picks up the club and hits a ball, I have a component hit event that I simply want to increment a counter on the screen. So there is the club blueprint (pictured below) and the screen blueprint.
On the event, I do some stuff with the ball like play a sound and set a variable that it has been hit, and that all works. You can see the end of that part in the very left of the picture as it sets the ‘been hit’ variable. After that I try and cast to the screen and update the hit counter, then show it on the screen via the ‘Set Hits’ event. There are no compile errors but when I play it, the cast fails, I see the ‘failed’ message show up when I hit the ball.
Any idea why? The only difference from casting to the ball is that the target for the ball comes out of the hit event, whereas the screen target comes from an object reference called ‘objVideo’. You can see on the right side of the pic how that is set up.
Any idea on why this cast is failing?