Jump to content

"Slower" animation


Recommended Posts

Is there any way to slow down the animation or at least make little cooldowns between performing few of them?

Im using this code to make full dab emote by using /dab command on chat

if GetModConfigData("LANG") == "english" then
	GLOBAL.AddModUserCommand("Hidden Name Mod", "dab", {
		prettyname = function(command) return "dab emote" end,
		desc = function() return "Perform an emote!" end,
		permission = "USER",
		params = {},
		emote = true,
		slash = true,
		usermenu = false,
		servermenu = false,
		vote = false,
		serverfn = function(params, caller)
			local player = GLOBAL.UserToPlayer(caller.userid)
			if player ~= nil then
				player:PushEvent("emote", { anim =  "emote_dab_pre", randomanim = true })
				player:PushEvent("emote", { anim =  "emote_dab_loop", randomanim = true })
				player:PushEvent("emote", { anim =  "emote_dab_pst", randomanim = true })
			end
		end,
		localfn = function(params, caller)
			local player = GLOBAL.UserToPlayer(caller.userid)
			if player ~= nil then
				player:PushEvent("emote", { anim =  "emote_dab_pre", randomanim = true })
				player:PushEvent("emote", { anim =  "emote_dab_loop", randomanim = true })
				player:PushEvent("emote", { anim =  "emote_dab_pst", randomanim = true })
			end
		end,
	})
end

It's working but animation is really "quick" or sharp i would say.

Maybe sth like ~~Event:DoTaskInTime(1) might work but i don't know how to implement it

Any help pleaseĀ :wilson_dorky:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...