RU/getEffectSpeed: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
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) | ||
getEffectSpeed (effect) | getEffectSpeed (effect) | ||
outputChatBox ("Скорость эффекта smoke30lit равна 1") | outputChatBox ("Скорость эффекта smoke30lit равна 1") | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
{{Client_Effects_functions}} | {{Client_Effects_functions}} |
Revision as of 14:55, 21 June 2014
Синтаксис
Click to collapse [-]
Clientfloat getEffectSpeed (effect)
Обязательные аргументы
- effect: Эффект, скорость которого хотим получить.
Пример
addCommandHandler("ges", function (cmd) local x, y, z = getElementPosition (localPlayer) local effect = createEffect ("smoke30lit", x, y, z) getEffectSpeed (effect) outputChatBox ("Скорость эффекта smoke30lit равна 1") end)
See Also
- createEffect
- fxAddBlood
- fxAddBulletImpact
- fxAddBulletSplash
- fxAddDebris
- fxAddFootSplash
- fxAddGlass
- fxAddGunshot
- fxAddPunchImpact
- fxAddSparks
- fxAddTankFire
- fxAddTyreBurst
- fxAddWaterHydrant
- fxAddWaterSplash
- fxAddWood
- getEffectDensity
- getEffectSpeed
- setEffectDensity
- setEffectSpeed