You are viewing an old version of this page. Return to the latest version.
Version of 10:41, 3 August 2013 by John adams
No categories assigned
LUA:Interrupt
- Last edited 11 years ago by I need to Update My Profile
Revision as of 10:41, 3 August 2013 by John adams (talk | contribs) (Created page with "= LUA Functions: Interrupt() = Interrupts casting of target ==== Syntax ==== Interrupt(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2'' (Spawn...")
LUA Functions: Interrupt()
Interrupts casting of target
Syntax
Interrupt(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (Spawn)
- param1 is the caster of the entity command
- param2 is the target of the entity command
Note: Either of these can be the Player or NPC, since NPCs can interrupt player casting as well.
Usage
function cast(Caster, Target)
if target ~= nil then
Interrupt(Caster, Target)
end
end
This script will cause the caster to interrupt a Target who is casting a spell or ability.