Talk:Interacting with the game: Event-based programming
The code examples seem to be outdated. I got this working:
local Event = import("Event") local Comms = import("Comms") local welcome = function() Comms.Message ("welcome to Pioneer!") end Event.Register("onEnterSystem", welcome)