SetEffectSpeed

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

ADDED/UPDATED IN VERSION 1.4 [Expression error: Unrecognized word "this".

This function sets the speed for the effect.

r

This function sets the speed for the effect.

]:
6208

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