-
Notifications
You must be signed in to change notification settings - Fork 27
Player Sensor
austinv11 edited this page Dec 12, 2014
·
5 revisions
The Player Sensor is a peripheral which allows a computer to detect players. It can be crafted with a Turtle to get an Player Noticing Turtle.
Event | Parameter 1 | Parameter 2 | Description |
---|---|---|---|
player | "player" | string playerName | This event is called when a player right clicks upon the peripheral |
Function | Returns | Description |
---|---|---|
getNearbyPlayers([number range]) | table players | Returns nearby players in the form of a table, this table contains other tables with the keys "player" and "distance" |
getAllPlayers([boolean limitToCurrentWorld]) | table players | Returns a player of all players currently on the server (and within the current world if set to) |