Skip to content
This repository was archived by the owner on Aug 21, 2026. It is now read-only.

EntityDetector

ben-mkiv edited this page Nov 16, 2019 · 7 revisions

Entity Detector

Entity Detector allows you to detect any entities around the block

Can be used as Upgrade for Drones/Microcontrollers/Robots/Tablets

Methods

entity = require("component").os_entdetector

-- Returns a table of detected entities, also queues a signal for each entity found
-- "entityDetect", with name, range, x, y, z
entity.scanPlayers(optional int:1-64) 

-- Returns a table of detected entities, also queues a signal for each entity found
-- "entityDetect", with name, range, x, y, z 
-- (This omits players, but can include dropped items)
entity.scanEntities(optional int:1-64) 

Clone this wiki locally