~~NOTOC~~ <=[[4rpl:start| Index]] ====== EditAddUndo ====== EditAddUndo(<-undoType) ===== Description ===== Creates an undo entry when editing the map. The argument specifies the type of undo. A value of 0 means any terrain change. An undo entry can be restored by the map maker, by pressing ctrl/command-z. This command does nothing if the game is not in mission edit mode. Note: Only undoType of 0 (zero) is supported. ===== Examples ===== EditAddUndo(0) SetTerrain(42 23 10) #The make can press ctrl-z to under the terrain change. <=[[4rpl:start| Index]]