Difference between revisions of "Peripheral (event)"
From ComputerCraft Wiki
TheCoryKid (Talk | contribs) m (Removed the NeedsWork.) |
m (Please don't remove {{NeedsWork}} without proofreading document contents.) |
||
Line 5: | Line 5: | ||
}} | }} | ||
{{Example | {{Example | ||
− | |desc=Prints the type of peripheral and side | + | |desc=Prints the type of peripheral and the side of the peripheral when attached |
|code= | |code= | ||
while true do | while true do | ||
Line 13: | Line 13: | ||
}} | }} | ||
{{Example | {{Example | ||
− | |desc=Prints if | + | |desc=Prints if a modem is attached to the computer. |
|code= | |code= | ||
while true do | while true do |
Revision as of 16:00, 6 May 2013
Event peripheral | |
Fired when a peripheral is connected (directly adjacent) to the computer. | |
Returned Object 1 | The string value of the side of the connected peripheral. |