GetEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New items|4.0132|1.4 r6208| This function gets the speed the effect. }} ==Syntax== <syntaxhighlight lang="lua"> float getEffectSpeed(effect) </syntaxhighlight> ===Requ...") |
(create list) |
||
Line 19: | Line 19: | ||
function (cmd) | function (cmd) | ||
local x, y, z = getElementPosition (localPlayer) | local x, y, z = getElementPosition (localPlayer) | ||
local effect = createEffect (" | local effect = createEffect ("explosion_crate", x, y, z) | ||
getEffectSpeed (effect) -- The default get 1.0 | getEffectSpeed (effect) -- The default get 1.0 | ||
end) | end) |
Revision as of 12:06, 22 June 2014
Syntax
float getEffectSpeed(effect)
Required Arguments
- effect: The name of the effect.
Example
Click to collapse [-]
Client[Lua] addCommandHandler("ges", function (cmd) local x, y, z = getElementPosition (localPlayer) local effect = createEffect ("explosion_crate", x, y, z) getEffectSpeed (effect) -- The default get 1.0 end)