ScriptEventBuilder

Group
player
Methods
9
Fields
None

Getting one

client:createScriptEventBuilder(…)

Methods

MethodReturnsDescription
getArguments(){number | string}The arguments: index 1 is the script id.
setArguments({ n: number, [number]: any? })ScriptEventBuilderReplaces the arguments: the script id first.
getSource()Widget?The widget the WIDGET_ID and WIDGET_INDEX sentinels name.
setSource(Widget)ScriptEventBuilderSets the widget the WIDGET_ID and WIDGET_INDEX sentinels name (what runs a widget's own listener, as getOnLoadListener() hands it).
getTarget()Widget?The drag-complete target.
setTarget(Widget)ScriptEventBuilderSets the drag-complete target.
getOp()numberThe menu op.
setOp(number)ScriptEventBuilderSets the menu op.
build()ScriptEventThe event to run().

Returned by

MethodReturnsDescription
Client.createScriptEventBuilderScriptEventBuilderA script event to fill in and run(): the script id first, then its arguments, as runScript takes them.

Method details