User Tools

Site Tools


reset_map

This is an old revision of the document!


Reset Map


Resets the specified map to its original state.

Signature:

reset_map(map_name)
ArgumentDescriptionTypeRequired
map_nameName of the map to reset.StringYes

Example:

reset_map("dungeon")

Results: The map with resource name “Dungeon” is loaded and the player is placed onto the tile at coordinate (2, -3, 1) facing east.

Use the Load Map function to launch an initial map from your game's startup script or to link a tile in one map to another (for example, stairs leading down into a dungeon).


Editor Node:

reset_map.1591031962.txt.gz · Last modified: 2020/06/01 10:19 by justin