RU/setEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
m (обновил) |
(→Пример) |
||
Line 21: | Line 21: | ||
function (cmd) | function (cmd) | ||
local x, y, z = getElementPosition (localPlayer) | local x, y, z = getElementPosition (localPlayer) | ||
local effect = createEffect (smoke30lit, x, y, z) | local effect = createEffect ("smoke30lit", x, y, z) | ||
setEffectSpeed (effect, 5) | setEffectSpeed (effect, 5) | ||
outputChatBox ("Скорость эффекта равна 5") | outputChatBox ("Скорость эффекта равна 5") | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
{{Client_Effects_functions}} | {{Client_Effects_functions}} |
Revision as of 14:53, 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