Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local onGameStart = function ()
- print("onGameStart")
- end
- local onGameEnd = function ()
- print("onGameEnd")
- end
- local onEnterSystem = function (ship)
- print(string.format("onEnterSystem: ship %s", ship.label))
- end
- local onLeaveSystem = function (ship)
- print(string.format("onLeaveSystem: ship %s", ship.label))
- end
- local onShipHit = function (ship, other)
- print(string.format("onShipHit: ship %s other %s", ship.label, other.label))
- end
- local onShipDestroyed = function (ship, other)
- print(string.format("onShipDestroyed: ship %s other %s", ship.label, other.label))
- end
- local onShipCollided = function (ship, other)
- print(string.format("onShipCollided: ship %s other %s", ship.label, other.label))
- end
- local onShipDocked = function (ship, station)
- print(string.format("onShipDocked: ship %s station %s", ship.label, station.label))
- end
- local onShipUndocked = function (ship, station)
- print(string.format("onShipUndocked: ship %s station %s", ship.label, station.label))
- end
- local onJettison = function (ship, cargo)
- print(string.format("onJettison: ship %s cargo %s", ship.label, cargo.label))
- end
- EventQueue.onGameStart:Connect(onGameStart)
- EventQueue.onGameEnd:Connect(onGameEnd)
- EventQueue.onEnterSystem:Connect(onEnterSystem)
- EventQueue.onLeaveSystem:Connect(onLeaveSystem)
- EventQueue.onShipHit:Connect(onShipHit)
- EventQueue.onShipDestroyed:Connect(onShipDestroyed)
- EventQueue.onShipCollided:Connect(onShipCollided)
- EventQueue.onShipDocked:Connect(onShipDocked)
- EventQueue.onShipUndocked:Connect(onShipUndocked)
- EventQueue.onJettison:Connect(onJettison)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement