GetEffectDensity: Difference between revisions
Jump to navigation
Jump to search
(Added OOP syntax) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{New items| | {{New items|3.014|1.4 r6208| | ||
This function gets the density of certain [[effect]]. | This function gets the density of certain [[effect]]. | ||
}} | }} |
Revision as of 13:06, 30 November 2014
This function gets the density of certain effect.
Syntax
float getEffectDensity ( effect theEffect )
OOP Syntax Help! I don't understand this!
- Method: effect:getDensity(...)
- Variable: .density
- Counterpart: setEffectDensity
Required Arguments
- theEffect: The effect to get density of.
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)