You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddControlEffect"
(Created page with "= LUA Functions: AddControlEffect() = Adds a control effect (mez/stun) to the given spawn. ==== Syntax ==== AddControlEffect(param1, param2) ==== Parameters ==== ; Required -...") |
(→Notes) |
||
| Line 29: | Line 29: | ||
: 3 - Daze | : 3 - Daze | ||
: 4 - Stun | : 4 - Stun | ||
| + | : 5 - Root | ||
| + | : 6 - Fear | ||
| + | : 7 - Waterwalking | ||
| + | : 8 - Underwater Moonjumps | ||
Revision as of 20:30, 17 March 2014
LUA Functions: AddControlEffect()
Adds a control effect (mez/stun) to the given spawn.
Syntax
AddControlEffect(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int8)
- param1 must be a reference to a player or NPC.
- param2 must be a number from 1 to 4 representing the type of effect to add
Usage
function cast(Caster, Target) -- Mez the target. AddControlEffect(Target, 1) end
This will mez the target.
Notes
If this is used in a spell script a small amount of hate will be added to the target.
- Types
- 1 - Mez
- 2 - Stifle
- 3 - Daze
- 4 - Stun
- 5 - Root
- 6 - Fear
- 7 - Waterwalking
- 8 - Underwater Moonjumps