RU/setEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
== Также смотрите == | == Также смотрите == | ||
{{Client_Effects_functions}} | {{Client_Effects_functions}} | ||
[[en:setEffectSpeed]] | |||
Revision as of 12:42, 22 June 2014
Синтаксис
Click to collapse [-]
Clientvoid setEffectSpeed (effect, speed)
Обязательные аргументы
- effect: Эффект, которому будем устанавливать скорость. Список эффектов
- speed: Скорость. По умолчанию 1.0
Пример
addCommandHandler("setspeed",
function (cmd)
local x, y, z = getElementPosition (localPlayer)
local effect = createEffect ("smoke30lit", x, y, z)
setEffectSpeed (effect, 5)
outputChatBox ("Скорость эффекта равна 5")
end)