User Tools

Site Tools


reset_map

Reset Map


Resets the specified map to its original state. When resetting the current map, the player character will be returned to the tile they started on when the map was last loaded.

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 restored to its original state.

Use the Reset Map function to reset a dungeon containing a series of enemies to defeat or a puzzle to solve when the player leaves without completing the area.


Editor Node:

reset_map.txt · Last modified: 2021/04/21 18:43 by justin