mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
689 B
689 B
Function: AddControlEffect(Spawn, Type, OnlyAddSpawn)
Description: Apply a Control Effect to a Spawn, this includes Mesmerize, Stun, Root, so on.
Parameters:
Spawn: Spawn - The spawn or entity involved.Type: UInt8 - Control Effect TypeOnlyAddSpawn: Boolean (Optional) - False by default, set to True will only apply Control Effect to Spawn. Otherwise if Spell all Spawn Targets will apply control effect.
Returns: None.
Notes:
- See CONTROL_EFFECT_TYPE defines for more details.
Example:
-- Example usage: Will apply Control Effect to Spawn, or if in a Spell Script all Spell Targets, Type 1 is Mesmerize.
AddControlEffect(Spawn, 1)