-
Notifications
You must be signed in to change notification settings - Fork 113
Client macro object class
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
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);
Add action entry to macros.
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.