Announcement

Collapse
No announcement yet.

Run console command via C++?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Run console command via C++?

    Simple question I hope - how do you run a console command from C++? Haven't been able to find this so far, and the API pages are starting to not work.

    #2
    Though we generally try to avoid writing code that relies on executing console commands, you can do it with:

    UWorld::Exec(...)

    E.g,:

    GetWorld()->Exec(GetWorld(), TEXT("MyAwesomeConsoleCommand X Y Z"));

    Comment


      #3
      Awesome, thank you. Exactly what I needed.

      Comment

      Working...
      X