-
Notifications
You must be signed in to change notification settings - Fork 113
Client macro object class
Valentyn edited this page Mar 11, 2018
·
11 revisions
Command format:
NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
- 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.