Attach mesh to tree with wind motion

If the tree is a SkeletalMesh, then you should be able to attach the flag to one of the bones of the tree, or a socket. If the tree is swaying from the material using WorldPositionOffset… then you’re up the creek.