SetEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
(create list) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{New items|4.0132|1.4 | {{New items|4.0132|1.4 r6208| | ||
This function sets the speed for the effect. | This function sets the speed for the effect. | ||
}} | }} |
Revision as of 11:26, 22 June 2014
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
- createEffect
- fxAddBlood
- fxAddBulletImpact
- fxAddBulletSplash
- fxAddDebris
- fxAddFootSplash
- fxAddGlass
- fxAddGunshot
- fxAddPunchImpact
- fxAddSparks
- fxAddTankFire
- fxAddTyreBurst
- fxAddWaterHydrant
- fxAddWaterSplash
- fxAddWood
- getEffectDensity
- getEffectSpeed
- setEffectDensity
- setEffectSpeed