mirror of
https://github.com/weyne85/DML.git
synced 2025-10-29 16:57:49 +00:00
14 lines
371 B
Lua
14 lines
371 B
Lua
skel = {}
|
|
function skel:onEvent(event) -- event handler
|
|
end
|
|
|
|
function skel.update()
|
|
-- schedule next update invocation
|
|
timer.scheduleFunction(skel.update, {}, timer.getTime() + 1)
|
|
-- your own stuff and checks here
|
|
trigger.action.outText("DCS, this is Lua. Hello. Lua.", 30)
|
|
end
|
|
|
|
world.addEventHandler(skel) -- connect event hander
|
|
skel.update() -- start update cycle
|