GetEffectDensity: Difference between revisions

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

Revision as of 12:21, 22 June 2014

ADDED/UPDATED IN VERSION 1.4 r6208 :

This function gets the level of density the effect.

Syntax

float   getEffectDenstity(effect)

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)
   getEffectDenstity (effect)
end)

See also