SetEffectDensity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(create page)
 
mNo edit summary
Line 28: Line 28:
==See also==
==See also==
{{Client_Effects_functions}}
{{Client_Effects_functions}}
[[ru:SetEffectDensity]]
[[ru:setEffectDensity]]

Revision as of 12:22, 22 June 2014

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