GetEffectSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(create list)
No edit summary
Line 27: Line 27:
==See also==
==See also==
{{Client_Effects_functions}}
{{Client_Effects_functions}}
[[ru:GetEffectSpeed]]
[[ru:getEffectSpeed]]

Revision as of 12:23, 22 June 2014

ADDED/UPDATED IN VERSION 1.4 r6208 :

This function gets the speed the effect.

Syntax

float   getEffectSpeed(effect)

Required Arguments

  • effect: The name of the effect.

Example

Click to collapse [-]
Client
[Lua]
addCommandHandler("ges", 
function (cmd)
   local x, y, z = getElementPosition (localPlayer)
   local effect = createEffect ("explosion_crate", x, y, z)
   getEffectSpeed (effect) -- The default get 1.0
end)

See also