I don’t at all use Lua, I just noticed the behavior while testing an answer to a different thread, but is the Lua subsystem supposed to be unsafe (i.e. the program crashes if there are some errors in the logic of the script)?
For example, if you place this in your script, the only error I got was Segmentation fault (core dumped)
-- Failed without these v
-- targetPosition = Vector3(10,1,1)
-- up = Vector3(1,0,0)
-- Failed without these ^
local to = Quaternion()
if to:FromLookRotation(targetPosition, up) then
Print(to)
end
If this is expected, (particularly if this is behavior controlled by a build flag) I suppose that’s fine, I was just really surprised when the program crashed from something a simple as using an undefined variable.