SetEffectDensity

From Multi Theft Auto: Wiki
Revision as of 12:13, 22 June 2014 by Roma ™ (talk | contribs) (create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.4 r6208 :

This function sets the density for the effect.

Syntax

void    setEffectDensity(effect, density)

Required Arguments

  • effect: The name of the effect.
  • density: The level of density.

Example

Click to collapse [-]
Client
[Lua]
addCommandHandler("sed", 
function (cmd)
   local x, y, z = getElementPosition (localPlayer)
   local effect = createEffect ("fire_large", x, y, z)
   setEffectDensity(effect, 2)
end)

See also