In my weapon class (that deals with the players arms and held weapon) I have a PlayWeaponAnim() function that looks something like this:
simulated function PlayWeaponAnim(name AnimName, float Rate, optional bool bLooping)
{
local AnimNodeSequence AnimNode;
AnimNode = GetWeaponAnimNodeSeq();
if(AnimNode.AnimSeq == none || AnimNode.AnimSeq.SequenceName != AnimName){
AnimNode.SetAnim(AnimName);
}
AnimNode.PlayAnim(bLooping, Rate, StartTime);
}
The thing I can’t figure out is how to add a blend in and out when playing a new anim. Could anyone offer any advice?
Thanks in advance.