No categories assigned

LUA:CancelSpell

Revision as of 14:52, 16 January 2014 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: CancelSpell() = Will cancel the spell that this function is called from ==== Syntax ==== CancelSpell() ==== Usage ==== <pre> function cast(Caster, Target) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: CancelSpell()

Will cancel the spell that this function is called from

Syntax

CancelSpell()


Usage

function cast(Caster, Target)
    AddSpellTimer(1000, "CancelSpell")
end

function CancelSpell(Caster, Target)
    CancelSpell()
end

This spell will remove itself after 1 sec even if its duration is longer

Notes

The remove function will be called when you cancel the spell early