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