No announcement yet.

Making Cheat Codes, Help!

  • Filter
  • Time
  • Show
Clear All
new posts

    Making Cheat Codes, Help!

    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.
    Attached Files

    Try using "Get Player Character" instead of "Get Player Pawn".

    Try using "Open Level "Name of your Level"" instead of "Restart Level" (make sure your level is in the folder "Content/Blueprint/Maps/YourLevel").
    [Released] Multiplayer Combat Editor
    A-RPG Sacred Swords
    Auto-Chess Live Development
    Youtube Tutorials


      Nothing happens when I try to jump to the end of the level after changing to "Get Player Character".

      Reload level works now.
      This is what I did:
      Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	23.6 KB
ID:	1091129
      Last edited by ExplorerTest; 10-11-2015, 05:47 PM.


        Nevermind, I got it working. I'm using Teleport to get to the location the player gets moved to.