GetEffectDensity: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
float | float getEffectDensity( effect theEffect ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 22: | ||
local effect = createEffect ("cement", x, y, z) | local effect = createEffect ("cement", x, y, z) | ||
setEffectDensity (effect, density) | setEffectDensity (effect, density) | ||
getEffectDensity (effect) | |||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:13, 22 June 2014
Syntax
float getEffectDensity( effect theEffect )
Required Arguments
- effect: The name of the effect.
Example
Click to collapse [-]
Client[Lua] addCommandHandler("ses", function (cmd) local density = 4 local x, y, z = getElementPosition (localPlayer) local effect = createEffect ("cement", x, y, z) setEffectDensity (effect, density) getEffectDensity (effect) end)