mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 11:07:23 -04:00
Updated Signals (markdown)
parent
c1418616ab
commit
71e6faf9bc
@ -1,6 +1,6 @@
|
||||
Signals are messages sent to a computer from some external source and can be used for many purposes. They always have at least a name, and may have any number of (simple) parameters. Note that computers may also queue signals on themselves.
|
||||
|
||||
Signals can be consumed using `[[computer.pullSignal()|API/Computer]]` or its preferred wrapper, `[[event.pull()|API/Event]]`.
|
||||
Signals can be consumed using [[computer.pullSignal()|API/Computer]] or its preferred wrapper, [[event.pull()|API/Event]]. The latter is preferred because unwanted signals and the requested signal itself are also distributed as events, which is used by a couple of system functions, such as primary component tracking.
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user