No categories assigned
LUA:ApplySpellVisual
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - ApplySpellVisual
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Makes the given spawn play the given spell animation.
Syntax
ApplySpellVisual(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn to play the animation
- param2 is the animation id to play
Example
function hailed(NPC, Spawn)
ApplySpellVisual(NPC, 869)
end
The NPC will play the falling coins animation used for the lotto.
Notes
The id given by param2 are the id's in reference_spell_effects table in the DB.