You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:RemoveControlEffect"
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
: ''param1'' is the spawn we want to check | : ''param1'' is the spawn we want to check | ||
: ''param2'' is the type of effect | : ''param2'' is the type of effect | ||
| − | + | ;Optional - ''param3'' (int8) | |
| + | : ''param3'' if set to 1 only remove this effect from the first param spawn | ||
==== Usage ==== | ==== Usage ==== | ||
| Line 24: | Line 25: | ||
== Notes == | == Notes == | ||
If used in a spell script it will attempt to remove from the spells targets instead of the supplied spawn | If used in a spell script it will attempt to remove from the spells targets instead of the supplied spawn | ||
| − | + | ; Types | |
| − | + | : 1 - Mez | |
| − | + | : 2 - Stifle | |
| − | 1 - Mez | + | : 3 - Daze |
| − | + | : 4 - Stun | |
| − | 2 - Stifle | + | : 5 - Root |
| − | + | : 6 - Fear | |
| − | 3 - Daze | + | : 7 - Waterwalking |
| − | + | : 8 - Underwater Moonjumps | |
| − | 4 - Stun | + | : 11 - Snare |
| + | : 12 - Flight | ||
| + | : 13 - Glide | ||
| + | : 14 - Safefall | ||
Latest revision as of 17:57, 27 March 2014
LUA Functions: RemoveControlEffect()
Removes the given type of control effect from the given spawn
Syntax
RemoveControlEffect(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int8)
- param1 is the spawn we want to check
- param2 is the type of effect
- Optional - param3 (int8)
- param3 if set to 1 only remove this effect from the first param spawn
Usage
function remove(Caster, Target)
RemoveControlEffect(Target, 4)
end
This will remove the stun effect of this spell when the spell is removed
Notes
If used in a spell script it will attempt to remove from the spells targets instead of the supplied spawn
- Types
- 1 - Mez
- 2 - Stifle
- 3 - Daze
- 4 - Stun
- 5 - Root
- 6 - Fear
- 7 - Waterwalking
- 8 - Underwater Moonjumps
- 11 - Snare
- 12 - Flight
- 13 - Glide
- 14 - Safefall