I’m making a project for one of my classes that requires me to have a cheat code of some sort (jump to win condition, reload level, etc) but I’m not sure I’m doing it right.
What I’m trying to do is have the cheat be triggered by a keyboard button press, so it’s currently in my FirstPersonCharacter’s Event Graph (where I have sprint and jump coded). I’m trying to move the player to the end of the level when 2 is pressed and restart the level with 1, but whenever I try to use them in-game, the viewport freezes and I have to hit ESC to get out.
Attached is what I have so far.
I would love to get some help with what I’m doing wrong since I’m still pretty new to Unreal.