Skip to main content

Adding Terminal Commands

warning

Please note that you cannot overwrite base game commands. You can try deleting their output, but their effects will still apply.

Write Console Line

This allows you to write any text you want as a line to the in-game Terminal Console. You can use the following color format codes for this:

  • White (default)
  • <c>Cyan</>
  • <y>Yellow</>
  • <g>Green</>
  • <r>Red</>

Delete Last Line

This node is used to delete the last sent line in the terminal, and is useful when creating custom commands, as it allows the Mod Creator to remove the > err that shows up by default when invalid commands are received and replace it with their own output.

Hooking The Terminal Command Handler

To listen for when commands are sent, you have to attach an Event to the Terminal Command Handler from the VoidMod Instance. Simply make a "Get VoidMod Instance" node, and drag another node off of the output to "Bind Event to On Terminal Command". Then, drag the Event input off and choose Event Dispatchers > Create Event. From the dropdown, select "Create a Matching Function" (or event).

warning

After doing so, if you rename the function, you likely will have to go to the dropdown again and choose the function or event you just made as Unreal Engine is silly like that.

Now, if I wanted to create a command called gato.silly, and it took the first parameter and said it back to you, my Terminal Handler graph would look like this: