Player Cast failed

Goodday,

I’m trying to make a vehicle system, where if you jump out of the vehicle you possess the main character. For some reason the cast is failing and I don’t understand why.

Try GetPlayerCharacter and cast that?

Also tried, did not work.

I think your player pawn is the vehicle that’s why it fails, maybe you have to save the reference to your main character in a variable before entering the vehicle and then when you leave you cast that variable or something similar :face_in_clouds:

I followed this tutorial: Unreal Engine 4 Tutorial - Vehicle Possession - YouTube, and changed some things so it was how I wanted it.

Thanks for responding tho.

1 Like