Working with chat#
Chat zones#
It is possible to define special regions (zones) on the map that can allow any user who is inside to access a specified chat. We call them "chat zones". When player gets inside, a new room will be added in his chat :
import ReactPlayer from 'react-player'
Adding new chat zone#
- Make sure you are editing an Object Layer
![]()
- Select Insert Rectangle tool
![]()
- Define new object wherever you want.
![]()
- Make sure your object is of class "area" !
![]()
- Edit this new object and click on Add Property, like this :
![]()
- Add a string property of name chatName
![]()
- Make sure you defined a name for your Chat
![]()
- Add a string property of name chatDescription
![]()
- Make sure you defined a description for your Chat
![]()
All should be set up now and your new chat zone should be working fine!