You are viewing an old version of this page. Return to the latest version.
Version of 22:04, 11 September 2013 by I need to Update My Profile
Difference between revisions of "LUA:RemoveControlEffect"
(Created page with "= LUA Functions: RemoveControlEffect() = Removes the given type of control effect from the given spawn ==== Syntax ==== RemoveControlEffect(param1, param2) ==== Parameters ==...") |
|||
| Line 24: | Line 24: | ||
== 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 | ||
| + | |||
| + | 3 - Daze | ||
| + | |||
| + | 4 - Stun | ||
Revision as of 22:05, 11 September 2013
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
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