Skip to main content

MER.RenameObject

Optional integration

This method requires ProjectMapEditorReborn.

Renames a MER map object.

Syntax​

MER.RenameObject *MER_object_reference "new_object_ID"

Returns​

reference to MERObjectDefinition object

Arguments​

NameRequiredTypeDescription
MER object referenceYesa reference to IMerObjectReference object.
new object IDYesAny text e.g. "Hello, World!"

Details​

Reloads the map and returns a replacement definition reference.

Possible errors​

  • The old object no longer exists.
  • The new object ID is already used.

On a running server​

Use serhelp MER.RenameObject to inspect the reference generated by your installed SER version.