PlayerWand
Defined in: shared.d.ts:1298
Wand controller returned by Player.wand.
Methods
Section titled “Methods”equip()
Section titled “equip()”equip(
callback?):number
Defined in: shared.d.ts:1309
Client round trip; returns the request id. The game’s behaviour tree also draws and stows the wand, so the callback can report WAND_REVERTED: the call landed and the game undid it.
Parameters
Section titled “Parameters”callback?
Section titled “callback?”WandCallback
Returns
Section titled “Returns”number
equipped()
Section titled “equipped()”equipped():
boolean|null
Defined in: shared.d.ts:1300
Whether the wand is drawn; null before the client’s first report.
Returns
Section titled “Returns”boolean | null
setStyle()
Section titled “setStyle()”setStyle(
style,callback?):number
Defined in: shared.d.ts:1313
Client round trip; returns the request id. Persists, so it survives a reconnect.
Parameters
Section titled “Parameters”string
callback?
Section titled “callback?”WandCallback
Returns
Section titled “Returns”number
style()
Section titled “style()”style():
string
Defined in: shared.d.ts:1302
The DT_CustomWandStyle row the wand renders, “” before the client’s first report.
Returns
Section titled “Returns”string
styles()
Section titled “styles()”styles():
string[]
Defined in: shared.d.ts:1304
Every style the game’s table offers, empty before the client’s first report.
Returns
Section titled “Returns”string[]
unequip()
Section titled “unequip()”unequip(
callback?):number
Defined in: shared.d.ts:1311
Client round trip; returns the request id. Same WAND_REVERTED caveat as equip.
Parameters
Section titled “Parameters”callback?
Section titled “callback?”WandCallback
Returns
Section titled “Returns”number