Comment on page
Field
Provided below are all the attribute values pertaining to Map. Currently, the Map’s width and height fields cannot be seen.
🔒 Fields with this icon are read-only fields that cannot be revised.
Name | Description |
---|---|
🔒 width | Calls the map’s width value. |
🔒 height | Calls the map’s height value. |
Map.width : Number
Map.height : Number
Calls the map’s width and height values.
Example
Display the map’s width and height values on the chat screen.
// Activates function when q is pressed
// **[App.addOnKeyDown Description (Link)](https://www.notion.so/Callbacks-7ac5078bab7c4f3180ae05463713581d)**
App.addOnKeyDown(81, function (player) {
App.sayToAll(`map's horizontal size: ${Map.width}`);
App.sayToAll(`map's vertical size: ${Map.height}`);
});
Last modified 1yr ago