AddControlEffect(Spawn: Entity, Int8: Type, Bool: OnlyAddSpawn)
Pre-Requisite(s)
- Must be ran inside a Spell Script
Parameter(s)
Spawn: Entity - Spawn LUA Pointer of Player, NPC or Bot type only.
Int8: Type - Control Effect Types
Bool: OnlyAddSpawn (OPTIONAL) - If set to true, will only apply Control Effect to the first parameter Spawn instead of all of the Spell's Spawn Target List.
Return(s)
- None
Example(s)
– Taken from Spells\Commoner\Disorientation.lua
function cast(Caster, Target)
AddControlEffect(Target, 4) – Stuns Target Entity
end
Result
Additional Notes