GetEffectDensity

From Multi Theft Auto: Wiki
Revision as of 20:14, 22 June 2014 by Lopez (talk | contribs)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.4 r6208 :

This function gets the level of density the effect.

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)

See also