GetEffectDensity: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added OOP syntax) |
||
Line 9: | Line 9: | ||
float getEffectDensity ( effect theEffect ) | float getEffectDensity ( effect theEffect ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[effect]]:getDensity|density|setEffectDensity}} | |||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 16:43, 26 November 2014
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)