austinv11 / PeripheralsPlusPlus

A pseudo-port of miscperipherals, with other stuff as well!
GNU General Public License v2.0
25 stars 27 forks source link

Player detector event #81

Closed ArcasCZ closed 9 years ago

ArcasCZ commented 9 years ago

Hello!

I want to ask you if you can add event, that will be called when someone come into player detector?

austinv11 commented 9 years ago

There is already an event called when a player right clicks it

ArcasCZ commented 9 years ago

But we need fire event when player comes to the radius.

darichey commented 9 years ago

Austin may still considering doing that, but that can already be done with the functionality that exists.

austinv11 commented 9 years ago

You can simply run a loop in which you attempt to detect players and if you do detect a player: break the loop and do whatever you want to do.