Talk:Interacting with the game: Event-based programming

From PioneerWiki
Revision as of 08:00, 9 February 2016 by Diederick (talk | contribs) (Created page with "The code examples seem to be outdated. I got this working: local Event = import("Event") local Comms = import("Comms") local welcome = function() Comms.Message ("...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)