985 B
985 B
Function: PlayAnimationString(spawn, name, opt_target, set_no_target, use_all_spelltargets, ignore_self)
Description: Play an animation by using the string to all Player's or only a specific optional_target (Player). Review Appearance ID's in the Reference List https://wiki.eq2emu.com/ReferenceLists by client for more details.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.name
(string) - Stringname
.opt_target
(int32) - Integer valueopt_target
.set_no_target
(int32) - Integer valueset_no_target
.use_all_spelltargets
(int32) - Integer valueuse_all_spelltargets
.ignore_self
(int32) - Integer valueignore_self
.
Returns: None.
Example:
-- From Spells/Commoner/UnholyFear.lua
function cast(Caster, Target)
local targets = GetSpellTargets()
for k,v in ipairs(targets) do
if GetLevel(v) < GetLevel(Caster) then
PlayAnimationString(v, "cringe", nil, true)
end