How can I make it so when a player comes in contact with an oject it restarts the level?

How can I make it so when a player comes in contact with an oject it restarts the level?

You will need to add a collision component to the object you want the player to collide with. Right click the collision component and select “Event Actor Begin Overlap”. This will create a new node on the event graph. It will give you an execution pin and an actor pin. You can drag from the actor pin and cast it to the Player that you want to overlap it. If the cast to you Player is successful, you can then use a node such as “Open Level” and type in the name of the level EXACTLY as it is typed (copy & paste).

You will also need to make sure that both collision components for your player and for the object you are wanting to collide with have “Generate Overlap Events” enabled.

Here is some documentation!

Hope this helped!

you can also use the ‘get current level name’ node to plug into the ‘open level>level name’ input pin.