Adding the abaility to track users entering/leaving a zone in the script language.
This commit is contained in:
parent
6fbf165c91
commit
2bef328d8a
6 changed files with 103 additions and 8 deletions
|
@ -6,3 +6,15 @@ WA.onChatMessage((message => {
|
|||
console.log('CHAT MESSAGE RECEIVED BY SCRIPT');
|
||||
WA.sendChatMessage('Poly Parrot says: "'+message+'"', 'Poly Parrot');
|
||||
}));
|
||||
|
||||
WA.onEnterZone('myTrigger', () => {
|
||||
WA.sendChatMessage("Don't step on my carpet!", 'Poly Parrot');
|
||||
})
|
||||
|
||||
WA.onLeaveZone('myTrigger', () => {
|
||||
WA.sendChatMessage("Thanks!", 'Poly Parrot');
|
||||
})
|
||||
|
||||
WA.onEnterZone('notExist', () => {
|
||||
WA.sendChatMessage("YOU SHOULD NEVER SEE THIS", 'Poly Parrot');
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue