RU/setEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
m (Roma ™ moved page RU/setEffectSpeed to RU/SetEffectSpeed) |
m (обновил) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | |||
{{New items|4.0132|1.4| | |||
Устанавливает скорость для эффекта. | |||
}} | |||
==Синтаксис== | ==Синтаксис== | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
| Line 21: | Line 26: | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See Also == | |||
{{Client_Effects_functions}} | |||
Revision as of 14:26, 21 June 2014
Синтаксис
Click to collapse [-]
Clientvoid setEffectSpeed (effect, speed)
Обязательные аргументы
- effect: Эффект, которому будем устанавливать скорость. Список эффектов
- speed: Скорость. По умолчанию равна 1.
Пример
addCommandHandler("setspeed",
function (cmd)
local x, y, z = getElementPosition (localPlayer)
local effect = createEffect (smoke30lit, x, y, z)
setEffectSpeed (effect, 5)
outputChatBox ("Скорость эффекта равна 5")
end)
See Also
- createEffect
- fxAddBlood
- fxAddBulletImpact
- fxAddBulletSplash
- fxAddDebris
- fxAddFootSplash
- fxAddGlass
- fxAddGunshot
- fxAddPunchImpact
- fxAddSparks
- fxAddTankFire
- fxAddTyreBurst
- fxAddWaterHydrant
- fxAddWaterSplash
- fxAddWood
- getEffectDensity
- getEffectSpeed
- setEffectDensity
- setEffectSpeed