I really need help so I'm repeating this thread
I'm compiling with visual studio C++ and I was wondering how do you run a command like !set type all gold or !set temp all 9999 or something like that? I assumed it was this line:
ConsoleCommand(command, returnCode, commandInterface->GetLastError())
but it's probably wrong as it doesn't work. Can anyone help me?
I've actually tried to figure this out too, with little success. I'll try to find it again.
By the way, it seems like you're making a mod - where might I find it? (or is it released yet?)
no it's not released yet. I might in the future.
luacon_ci->Log(CommandInterface::LogError, luacon_geterror());
I don't think it's possible to run old console commands except in the console.
How does the console run said commands?
(By the way, feel free to use my code if it helps)
OK, Guess I'm writing my own function to stimulate those commands. Thanks everybody!