From 9a91b6cd9ce2902e2afdb97a5d4b6acf17ba624a Mon Sep 17 00:00:00 2001 From: CokaCola Date: Sat, 8 Mar 2014 07:00:00 -0800 Subject: [PATCH] Updated Signals (markdown) --- Signals.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Signals.md b/Signals.md index face69a..9882448 100644 --- a/Signals.md +++ b/Signals.md @@ -4,6 +4,7 @@ Signals can be consumed using `[[computer.pullSignal()|API/Computer]]` or its pr The following lists all signals triggered by components and the built-in libraries. They are listed in the following format: `name(arg: type, ...)`, meaning you would pull them like `local name, arg, ... = event.pull()`. For example, to pull a modem message: ```lua +local event = require("event") local _, localNetworkCard, remoteAddress, port, distance, payload = event.pull("modem_message") print("Received data '" .. tostring(payload) .. "' from address " .. remoteAddress .. " on network card " .. localNetworkCard .. " on port " .. port .. ".")