No categories assigned

LUA:Interrupt

LUA Functions: Interrupt()

Interrupts casting of a spawn. If the spawn param is not set and this is used in a spellscript, this will interrupt all spell targets.


Syntax

Interrupt(param1, param2)


Parameters

Required - param1 (Spawn)
param1 is the caster of the interrupt
Optional - param2 (Spawn)
param2 if used is the target of the interrupt, otherwise all spell targets will be interrupted.


Note: Either of these can be the Player or NPC, since NPCs can interrupt player casting as well.


Usage

function cast(Caster, Target)
    Interrupt(Caster, Target)
end

This script will cause the caster to interrupt a Target who is casting a spell or ability.