SetEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
===Example=== | ===Example=== | ||
<section name=" | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua">[Lua] | <syntaxhighlight lang="lua">[Lua] | ||
addCommandHandler("ses", | addCommandHandler("ses", |
Revision as of 12:04, 22 June 2014
Syntax
void setEffectSpeed(effect, speed)
Required Arguments
- effect: The name of the effect. For example ( "smoke30lit" ).
- speed: The speed.
Example
Click to collapse [-]
Client[Lua] addCommandHandler("ses", function (cmd) local x, y, z = getElementPosition (localPlayer) local effect = createEffect ("smoke30lit", x, y, z) setEffectSpeed (effect, 5) end)