Open main menu

Returns a boolean indicating whether the CTRL key is depressed.

keydown_state = IsCtrlKeyDown()

ParametersEdit

ArgumentsEdit

none

ReturnsEdit

true/false - boolean value if the CTRL key is in the down state.


ExampleEdit

if (IsCtrlKeyDown()) then
    CastSpellByName("Flame");
else
    CastSpellByName("Fireball");
end

NotesEdit

Related FunctionsEdit