Untitled
unknown
lua
3 years ago
882 B
5
Indexable
local function MoveActions(self, event, ...)
if ( IsShiftKeyDown() ) then
SetBinding("SHIFT-SPACE");
SendAddonMessage( "MOVEACTION", "SPRINTSTART", "WHISPER", UnitName("player") );
end
if not( IsShiftKeyDown() ) then
if not ( IsAltKeyDown() ) then
SendAddonMessage( "MOVEACTION", "SPRINTEND", "WHISPER", UnitName("player") );
end
end
if ( IsControlKeyDown() ) then
SendAddonMessage( "MOVEACTION", "BLOCKSTART", "WHISPER", UnitName("player") );
end
if not( IsControlKeyDown() ) then
SendAddonMessage( "MOVEACTION", "BLOCKEND", "WHISPER", UnitName("player") );
end
if ( IsAltKeyDown() ) then
SendAddonMessage( "MOVEACTION", "ROLL", "WHISPER", UnitName("player") );
end
local isTyping = IsPlayerTyping();
if isTyping == 1 then
ConsoleAddMessage("Is typing");
else
ConsoleAddMessage("is NOT typing");
end
endEditor is loading...