Trigger API Reference DCEI Functions Map0 - BLKTower/TestWiki GitHub Wiki

Table of Contents

Trigger API Reference\DCEI Functions\Map {Trigger-API-ReferenceDCEI-FunctionsMap}

string GetLevelName() {string-GetLevelName}

string GetLevelName()

Description

Returns the published name of the map.

Example Usage

local level_name = DCEI.GetLevelName()
DCEI.LogMessage(level_name)

void PlayLevel(string path, string displayName, string data, object usedUnits) {void-PlayLevelstring-path-string-displayName-string-data-object-usedUnits}

void PlayLevel(string path, string displayName, string data, object usedUnits)

Description

Loads and plays the given map. The map to load must be within the same project.

Parameters

  • string path the path to the map, or just the map name if both maps are in the same folder.
  • string displayName the display name of the map.
  • string data any data that is passed to the new level.
  • object usedUnits a table declaring any units used by the new level, if not declared locally already.

Example Usage

DCEI.PlayLevel("Workshop 02 - Debugging & Foundations", nil, nil, nil)

string GetPlayLevelData() {string-GetPlayLevelData}

string GetPlayLevelData()

Description

Returns the play level data.

Example Usage

local level_data = DCEI.GetPlayLevelData()
DCEI.LogMessage(level_data)

⚠️ **GitHub.com Fallback** ⚠️