Devices: Sensors - MatLomax/WireMod GitHub Wiki

Time Sensor

TimeSensor

I/O # Type Name
Out 0 bool Hours
Out 1 bool Minutes
Out 2 bool Seconds

Basically just a glorified clock.

Use in combination with a Modulo device and an Equals device to have recurring time-based triggers.

Player Distance Sensor

PlayerDistanceSensor

I/O # Type Name
In 0 TeamColor TeamColor Filter
Out 0 int Distance
Out 1 string Player Name

Outputs the distance and name of the nearest matching Player.

NPC Distance Sensor

NPCDistanceSensor

I/O # Type Name
In 0 bool Hostile Filter
In 1 bool TownNPC Filter
Out 0 int Distance

Outputs the distance to the nearest matching NPC.

NPC Counter

NPCCounter

I/O # Type Name
In 0 int Distance
In 1 bool Hostile Filter
In 2 bool TownNPC Filter
Out 0 int Count

Outputs the number of matching NPCs within a given radius.