onEnterSensor
This event is triggered when a player enters the sensor.
note
If you want to detect when a player enters any sensor, you should use player.events(onEnterSensor)
instead.
Parameters
Name | Type | Description |
---|---|---|
player | PlayerManager | The player that entered the sensor. |
Example
object.events.on('onEnterSensor', player => {
console.log('Player entered sensor', player);
});
Available on: Client