You don’t need to buy anything extra. 3ds Max already has some similar tools to the plugin that Epic has for Maya, so whatever program you choose it can rig and animate just fine. Including Blender, which is free, though from what I understand it’s not particularly simple to export from Blender to UE4 but it’s very easy using Maya and 3ds Max.