User Tools

Site Tools


4rpl:commands:editaddundo

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.

Index

4rpl/commands/editaddundo.txt · Last modified: 2021/11/18 15:14 by Karsten75