So I think I’ve run into a major problem with the lua_run entity.
I have a logic_auto entity that has the following output:
“OnMapSpawn” "LuaEntity,RunPassedCode,game.ConsoleCommand("sv_gravity 400
The problem is Hammer will crash because it can’t parse the extra quotation marks inside of game.ConsoleCommand() properly.
If I try to switch the quotes to single quotes like so:
“OnMapSpawn” “LuaEntity,RunPassedCode,game.ConsoleCommand('sv_gravity 400
This prints out to console:
[ERROR] RunString:1: unfinished string near '‘sv_gravity 400’
- unknown - RunString:0
Please help, I have no idea what to do.