GetEffectDensity: Difference between revisions
Jump to navigation
Jump to search
(create page) |
mNo edit summary |
||
| Line 29: | Line 29: | ||
==See also== | ==See also== | ||
{{Client_Effects_functions}} | {{Client_Effects_functions}} | ||
[[ru: | [[ru:getEffectDensity]] | ||
Revision as of 12:21, 22 June 2014
Syntax
float getEffectDenstity(effect)
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)
getEffectDenstity (effect)
end)