• Getting sequences to play at the first frame with CalcMainActivity?
    2 replies, posted
Hello, I'm working on having my Sweps play specific sequences if certain criteria are met, but I'm having issues with getting the animations to play at the start. Currently, they just take the frame number of the idle animation, and start the animation from there. I was wondering if it would be possible to somehow reset that counter when I set the new animation? hook.Add("CalcMainActivity", "animations_deanimator", function(ply, velocity) if IsValid(ply:GetActiveWeapon()) && ply:GetNWFloat("MM_Deanimatorstun") > CurTime() then ply.CalcIdeal = ACT_MP_STAND_IDLE ply.CalcSeqOverride = -1 ply.CalcSeqOverride = ply:LookupSequence( "zombie_attack_frenzy" ) return ply.CalcIdeal, ply.CalcSeqOverride end end
Try ply:SetCycle(0) when the animation starts.
Perfect! Thank you!
Sorry, you need to Log In to post a reply to this thread.