How to fade from one animation toanother.

The question is fairly simple and is as follows in the title: Is there a way to fade from one animation to another in Garry’s Mod.

I have an addon in the works at the moment and I would like a way to go from the ACT_VM_PRIMARYATTACK straight into the ACT_VM_IDLE without cutoffs.
Any help is appreciated and would assist me greatly.

Thanks in advance Chaps!


SequenceActivity() after you send the animation will give you the end of the current activity. You can use this time to either make a timer that will send the ACT_VM_IDLE anim when the time has passed, or compare with CurTime() in a Think hook.

[editline]16th October 2015[/editline]

You can see how the fists did it here with NetworkVars:

Thank you! All sorted now!