Collision Restart Level code?

Hi?

I’ve just moved from Unity and i’m struggling with Collisions. How do i program a collision between a Pawn and a cube. Of the pawn touches the cube the level restarts?

I have no idea where to begin.

Thank you

Note: I do not want to use blueprints

I am using the console command “restartlevel” to do this.

HTH

You override the Cube’s OnOverlapBegin(). Using the “restartlevel” command like ryan20fun said will be helpful, but you might be better off by digging into the command’s code so you can adapt it to your needs.