v0.13.8

PLAYER_SWING

eventimplementedC_SwingTimeravailable in: camelot

Fires when the player makes a melee or ranged swing. Blizzard's swing timer and gamepad reticle animate it. · description by wowlua

declarationwowlua
declare event PLAYER_SWING(swingDuration: number, swingType: PlayerSwingType)

Payload

#nametypedescription
1swingDurationnumberThe duration of the swing, which Blizzard's swing timer restarts with.
2swingTypePlayerSwingTypeWhich weapon swung (Enum.PlayerSwingType).

Blizzard's documentation marks the event as synchronous.

In wowlua's emulated client

implementedThe emulator fires it on its own, from its units model. what the statuses mean

sources

Name, payload and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SwingTimer system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry.