Skip to content

Client macro object class

Hotride edited this page Dec 8, 2019 · 11 revisions

Command format:

ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);

  • ReturnType - the return value of the function (void - the function returns nothing);

  • NameSpace - the scope of the function;

  • name - the name of the function;

  • requiredParameters - required parameters;

  • optionalParameters - optional parameters, the default value is indicated after the = sign


MacroObject Orion.CreateClientMacro('action', ['subAction']);

Creates a MacroObject instance with gives action and possible subactions.

Returns a MacroObject object.

-Example

//This creates a 'BandageSelf' client macro and instantly executes it.
Orion.CreateClientMacro('BandageSelf').Play(false, 1000);

void macro.AddAction('action', ['subAction']);

Add action entry to macros.


void macro.Play([waitWhileMacroPlaying=false], [delay=100500]);

Play macro in client.

Attention! Only 1 macro can be played in client at a time!

Multiple requests to play a macro while there's a macro already playing will cancel each other out. Last requested macro will be played.

waitWhileMacroPlaying - will wait if there's a macro already playing.

delay - delay to wait for current macro completion.

Clone this wiki locally