While making an addon script, i noticed that trying to use a matrix function outside of onTick (i was trying to initialize a position so i used
safe=matrix.translation(-17866.4,75,-33445.5)
it ended up throwing an error: "24: attempt to index a nil value (global "matrix")
then i tested it still, and the code did not error; it fully worked despite the compiler throwing an error.
the best guess i have is that the compiler doesn't understand Stormworks LUA api and thinks this cannot work except it can