Editor Functions

From Moondust Wiki
Jump to navigation Jump to search

Functions that work only in edit mode are used through Script Editor (Editor).

ObjectCreate

Returns the PermID of Object.

Parameters Description
Type The Type of Object
Type Name
1 Blocks
2 Backgrounds
3 NPCs
4 Liquids
dim PermID as integer = objectcreate(Type)

ObjectRemove

Remove the object get called.

Parameters Description
Type The Type of Object
ID Name
1 Blocks
2 Backgrounds
3 NPCs
4 Warps
5 Liquids
PermID PermID of Object
call objectremove(Type, PermID)

Additional Information

  • All objects and (most of) properties can be manipulated within the Script Editor (Editor), through their PermID.