SetEffectSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 28: Line 28:
==See also==
==See also==
{{Client_Effects_functions}}
{{Client_Effects_functions}}
[[ru:setEffectSpeed]]

Revision as of 11:30, 22 June 2014

ADDED/UPDATED IN VERSION 1.4 r6208 :

This function sets the speed for the effect.

Syntax

void    setEffectSpeed(effect, speed)

Required Arguments

  • effect: The name of the effect. For example ( "smoke30lit" ).
  • speed: The speed.

Example

Click to collapse [-]
Server
[Lua]
addCommandHandler("ses", 
function (cmd)
   local x, y, z = getElementPosition (localPlayer)
   local effect = createEffect ("smoke30lit", x, y, z)
   setEffectSpeed (effect, 5)
end)

See also