Add z params to lua functions

Mostly ignored for now, but may as well future-proof the interface
allow lua to add derelicts
fix bug in derelict meshes