ZEP Guidebook (EN)
  • Hello ZEP Script
  • ZEP Script
    • 💻ZEP Script Guide
      • ZEP Script Development Guide
        • JavaScript Development Tips
        • ZEP Script Deployment Guide
        • TypeScript Development Tips
      • Explore ZEP Script
        • Tutorials
          • Displaying a Message
          • Changing Avatar Image
          • Using HTML
          • Communicating with an External API
          • Creating a 2-Second Stun Effect
        • ZEP Script Example Code
          • Timer
          • Zombie Game
          • Paintman Game
          • Hangul Quiz Game
          • Avoid Poop Game
          • Boxing Game
          • Sidebar App
          • Race
      • ZEP Script FAQ
      • Appendix
        • ZEP Script Use Cases
        • Understanding Spaces and Maps
        • JavaScript Keycode List
        • Understanding Sprite Sheets
        • TileEffectType Detailed Explanation
        • What are Reference Coordinates?
        • Communicating with an External API
        • How to Use URL Query Strings
        • How to Change the Mobile Interaction Button
        • Grammar Available for Widgets
        • Object Interaction with ZEP Script
        • Object npcProperty
    • 📘ZEP Script API
      • API Summary
      • ScriptApp
        • Lifecycle
        • Field
        • Storage
        • Event Listeners
        • Callbacks
        • Methods
      • ScriptMap
        • Field
        • Methods
      • ScriptPlayer
        • Field
        • Methods
      • ScriptWidget
        • Field
        • Event Listeners
        • Methods
  • Others
    • Homepage
    • FAQ
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Introduction
  • 📚 API Explanation and Example
  • width & height

Was this helpful?

  1. ZEP Script
  2. ZEP Script API
  3. ScriptMap

Field

Introduction

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.

📚 API Explanation and Example

width & height

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}`);
});
PreviousScriptMapNextMethods

Last updated 2 years ago

Was this helpful?

📘