Skip to main content

MER.SetAnimationState

Optional integration

This method requires ProjectMapEditorReborn.

Sets a MER animation bool.

Syntax

MER.SetAnimationState *schematic_reference "parameter_name" state animator_index?

Arguments

NameRequiredTypeDescription
schematic referenceYesa reference to MERSchematic object.
parameter nameYesAny text e.g. "Hello, World!"
stateYesbool (true or false) value
animator indexNoA whole number bigger or equal 1Default: 1

Details

The animator index is one-based.

Possible errors

  • The schematic is invalid.
  • The animator index is out of range or its name was not found.
  • The requested state or parameter does not exist.

On a running server

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