Search in sources :

Example 1 with RSScriptEvent

use of net.runelite.rs.api.RSScriptEvent in project runelite by runelite.

the class ScriptVMMixin method runScript.

@Inject
@Override
public void runScript(int id, Object... args) {
    assert isClientThread();
    Object[] cargs = new Object[args.length + 1];
    cargs[0] = id;
    System.arraycopy(args, 0, cargs, 1, args.length);
    RSScriptEvent se = createScriptEvent();
    se.setArguments(cargs);
    runScript(se, 200000);
}
Also used : RSScriptEvent(net.runelite.rs.api.RSScriptEvent) Inject(net.runelite.api.mixins.Inject)

Aggregations

Inject (net.runelite.api.mixins.Inject)1 RSScriptEvent (net.runelite.rs.api.RSScriptEvent)1