Difference between revisions of "LUA:RemoveThreatTransfer"

(Created page with "= LUA Functions: IsFlanking() = Checks to see if the given spawn is flanking the target spawn ==== Syntax ==== IsFlanking(param1, param2) ==== Parameters ==== ; Required - ''p...")
 
 
Line 1: Line 1:
= LUA Functions: IsFlanking() =
+
= LUA Functions: RemoveThreatTransfer() =
Checks to see if the given spawn is flanking the target spawn
+
Removes the threat transfer this spell applied
  
 
==== Syntax ====
 
==== Syntax ====
IsFlanking(param1, param2)
+
RemoveThreatTransfer(param1)
  
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Spawn), ''param2'' (Spawn)
+
; Required - ''param1'' (Spawn)
: ''param1'' is the spawn who will be checking the other
+
: ''param1'' is the spawn to remove the threat transfer from
: ''param2'' is the spawn we want to know if it is flanking
 
  
  
 
==== Usage ====
 
==== Usage ====
 
<pre>
 
<pre>
function precast(Caster, Target)
+
function remove(Caster, Target)
     return IsFlanking(Target, Caster)
+
     RemoveThreatTransfer(Caster)
 
end
 
end
 
</pre>
 
</pre>
  
Will check to see if the caster is flanking the target before casting
+
When the spell fades it will remove the threat transfer that it had applied
 +
 
 +
== Notes ==
 +
This function can only be used in a spell script

Latest revision as of 17:36, 16 December 2013

LUA Functions: RemoveThreatTransfer()

Removes the threat transfer this spell applied

Syntax

RemoveThreatTransfer(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to remove the threat transfer from


Usage

function remove(Caster, Target)
    RemoveThreatTransfer(Caster)
end

When the spell fades it will remove the threat transfer that it had applied

Notes

This function can only be used in a spell script