Pages

sexta-feira, 16 de junho de 2017

BP Compendium 3: Execute Console Command

Execute Console Command


Blueprint function that allows the execution of a console command. Console commands are text-based commands that can be executed in the editor or in the game.


Input
  • Command: Console command that will be executed.
  • Specific Player: Optional. Reference to a Player Controller that will receive the command.


Example Usage: 

In a simple game, the level will be restarted when the player dies. This is done using a custom event named "Death" that executes the console command "RestartLevel".

Click to enlarge

For a complete list of console commands, open the "Output Log" window (Window → Developer Tools → Output Log). The line at the bottom of the window is for entering console commands. Enter the "DumpConsoleCommands" command and press Enter to get the list of commands.

Click to enlarge