v0.13.8

C_SwingTimer

namespaceavailable in: camelot

Status in wowlua

2 functions: 0 implemented, 0 recorded, 2 guessed. 2 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
EnableRangeCheckUsed in conjunction with PLAYER_SWING_RANGE_UPDATE to inform the UI when the current target goes in or out of auto attack range.
(swingType: PlayerSwingType, enable: boolean)
guessed
IsTargetWithinSwingRangeWhether the current target is within range of the player's auto attack for the given swing type. Auto attacks only ever apply to the current target, so no other unit can be queried.
(swingType: PlayerSwingType): boolean?
guessed

Events

eventpayloadfired by the emulator
PLAYER_SWINGswingDuration: number, swingType: PlayerSwingTypeimplemented
PLAYER_SWING_RANGE_UPDATEswingType: PlayerSwingType, isInRange: boolean, checksRange: booleannot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("PLAYER_SWING_RANGE_UPDATE").

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SwingTimer system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.