Difference between revisions of "LUA:ApplySpellVisual"
(Created page with "= LUA Functions: ApplySpellVisual() = Makes the given spawn play the given spell animation. ==== Syntax ==== ApplySpellVisual(param1, param2) ==== Parameters ==== ; Required ...") |
|||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | Makes the given spawn play the given spell animation. | + | |Name = ApplySpellVisual |
| − | + | |Description = Makes the given spawn play the given spell animation. | |
| − | + | |Param1 = Spawn | |
| − | = | + | |Param1Desc = is the spawn to play the animation |
| − | + | |Param2 = int32 | |
| − | + | |Param2Desc = is the animation id to play | |
| − | + | |Example = | |
| − | = | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| Line 19: | Line 12: | ||
end | end | ||
</pre> | </pre> | ||
| − | + | |ExampleDesc = The NPC will play the falling coins animation used for the lotto. | |
| − | 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. |
| − | + | }} | |
| − | |||
| − | |||
| − | The id given by | ||
Latest revision as of 12:07, 30 January 2021
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.