getEffectSpeed
Client-side
Server-side
Shared
Pair: setEffectSpeed
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function gets the speed of a specified effect.
Syntax
getEffectSpeed ( )Code Examples
client
This example adds commandgesthat creates crate explosion effect at the player's position and outputs its speed to the chatbox.
addCommandHandler("ges",function (cmd) local x, y, z = getElementPosition(localPlayer) local effect = createEffect("explosion_crate", x, y, z) outputChatBox("The speed: " .. tostring(getEffectSpeed(effect)))end)