partey_workadventure/maps/tests/ChangeLayerApi/script.js

7 lines
204 B
JavaScript
Raw Normal View History

WA.room.onEnterLayer('myLayer').subscribe(() => {
2022-01-25 20:43:27 +01:00
WA.chat.sendChatMessage("Hello!", 'Woka');
});
WA.room.onLeaveLayer('myLayer').subscribe(() => {
2022-01-25 20:43:27 +01:00
WA.chat.sendChatMessage("Goodbye!", 'Woka');
});