mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
828 B
828 B
Function: PlayAnimation(spawn, anim, target, hide_type)
Description:
The spawn will play the animation anim type specified. See the Appearance IDs by client in the ReferenceList here https://wiki.eq2emu.com/ReferenceLists
Note that the target and hide_type are optional fields. Setting the hide_type to 1 will mean only the target receives the update. Setting to 2 will exclude the target and send to all others.
Parameters:
spawn(Spawn) - Spawn object representingspawn.anim(int32) - Integer valueanim.target(Spawn) - Spawn objet representingtarget.hide_type(int32) - Integer valuehide_type.
Returns: None.
Example:
-- From ItemScripts/CrestridersTonic.lua
function cast(Item, Player)
PlayAnimation(Player, 11422) -- No joking its drink animation
end