# Multicast Attach Actor to Actor not Working

**URL:** <https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 16, 2022, 7:47pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718 "2022-05-16T19:47:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Werewolven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/werewolven/32/466692_2.png) [@Werewolven](https://forums.unrealengine.com/u/Werewolven)\
**Post date:** [May 16, 2022, 7:47pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/1 "2022-05-16T19:47:22Z")

</div>

I can’t figure out how to get the attach actor to actor to multi-cast, everything else seems to work fine, except for that one part, and all works on the server, but the attach actor to actor isn’t replicated on the client(s)

i made a video here if anyone cares to take a look,

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/3/2f39d99ba2a394255fea8397f048bf4dfceeb7a0.jpeg "Unreal Engine 5 2022 05 16 13 39 35 42") ](https://www.youtube.com/watch?v=ES-BhuHDGjM)

and a screenshot below, thanks for any insight!!!

 ![Screenshot_12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/a/43a6df6b08add2eff4543a83da59dfc6b91f04ea.jpeg)

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [May 16, 2022, 8:20pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/2 "2022-05-16T20:20:13Z")

</div>

I suspect there are a couple of issues going on here. I’m not in front of UE at the moment to throw something together to test so in lieu of that I’ll throw some ideas/thoughts out there in case they’re helpful. When I’m back in front of UE, if this hasn’t already been resolved, I’ll test some theories…

1. If I remember correctly, AttachActorToActor will replicate (for replicated actors). Which means it only needs to be called on the server versions of the pawn and car. Replication will make sure that relationship gets pushed to the clients.

2. I can’t tell from what was shown but you will need to make sure that all movement of the vehicle occurs on the server and is replicated to the clients. That jittering of the pawn looks like position corrections being done from server to client. Meaning the client isn’t where the server thinks it should be so the client is correcting it so it matches what the server thinks is happening.

It might be simple enough to just rout the pins from SVRGetInCar to the nodes following MCASTGetInCar as it might just work out of the box. Like I said, there could be other complex issues going on which I can’t see from the video or screenshot (like the car movement isn’t being properly replicated)

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [May 16, 2022, 8:28pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/3 "2022-05-16T20:28:26Z")

</div>

Another thing I’ll throw out there is that sometimes it really helps me if I attempt to replicate the scenario in an empty project. It removes the fear of screwing something up in the main project and also helps remove unrelated distractions by stripping the problem down to the bones. In a sense, if you can’t make this interaction happen between two cubes, you’re not going to get it working with a more complex setup. It’s a great habit to get into and has helped me out of some holes in the past.

---

<div class="post-metadata">

**Author:** ![Werewolven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/werewolven/32/466692_2.png) [@Werewolven](https://forums.unrealengine.com/u/Werewolven)\
**Post date:** [May 16, 2022, 8:54pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/4 "2022-05-16T20:54:24Z")

</div>

![Screenshot_13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/e/d2e8d7f45187bbacfe2d9f21f440f786f37f014d.jpeg)  
Thanks for the reply Gh0st!  
I really appreciate it, I am not sure if I am implementing your suggestion correctly here… (screenshot attached)

---

<div class="post-metadata">

**Author:** ![Werewolven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/werewolven/32/466692_2.png) [@Werewolven](https://forums.unrealengine.com/u/Werewolven)\
**Post date:** [May 16, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/5 "2022-05-16T20:59:42Z")

</div>

![Screenshot_14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/8/478937270d7ee356282715d7b681bed8a15c3cf0.jpeg)  
or possibly this?  
(tho neither of those seem to be working)

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [May 16, 2022, 9:02pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/6 "2022-05-16T21:02:53Z")

</div>

If a character is in a car, rather than being run around as a character, you’ll need to also turn off the character movement component, else it will fight the car for where the character should be.

---

<div class="post-metadata">

**Author:** ![Werewolven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/werewolven/32/466692_2.png) [@Werewolven](https://forums.unrealengine.com/u/Werewolven)\
**Post date:** [May 16, 2022, 9:40pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/7 "2022-05-16T21:40:40Z")

</div>

hm, that doesn’t seem to help in this case,

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [May 16, 2022, 10:15pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/8 "2022-05-16T22:15:08Z")

</div>

Apologies, I should have been more explicit in my response. Essentially replace the MCASTGetInCar with SVRGetInCar

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/1/af1c9111099c7b4f434e220c8c260f9498aa5ada.jpeg)

Hook up the two circled sections and see what that does for you. That will ensure that the attachment happens at the server and only the server.

I just got in front of a UE instance so I’ll see if I can’t put something together quickly that replicates what you’re doing.

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [May 17, 2022, 1:24am UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/9 "2022-05-17T01:24:04Z")

</div>

Ok, so I’ve mocked something up quickly for validation. Link to video here…

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/7/b2777d73d7205d05ea27d90c9c603d7803236086.jpeg "2022 05 16 21 04 11") ](https://www.youtube.com/watch?v=dbv7rC1CyWk)

In the first part of the video I possess the car pawn with the server and on the second part with the client. Let me know if I’m off base with the results.

Here is the meat of the player pawn

 ![player_pawn_event_graph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/d/d5d3e3bec73dcca7c8aef9e511e38dad4c14ee7e.png)

Here is what is happening on rep notify when the “driving” variable is updated

 ![player_pawn_onrep_driving](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/e/01eb0199bae6254612165f304a1e74d98ac92a47.png)

As per the usual, there are a couple of ways to skin a cat. This was a crude mockup and I would likely not implement this exactly like I have it but it gets the point across. One thing I learned during the process was that if you’re using the character movement component you have to turn off gravity which you turn off collision otherwise you’ll fall through the floor :-).

Let me know if there’s any part of this you don’t understand…or if I’ve totally missed the mark 😉

EDIT: Both the player and the the car are subclasses of the character class so they make use of the character movement component.

---

<div class="post-metadata">

**Author:** ![Werewolven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/werewolven/32/466692_2.png) [@Werewolven](https://forums.unrealengine.com/u/Werewolven)\
**Post date:** [May 17, 2022, 7:04am UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/10 "2022-05-17T07:04:16Z")

</div>

you sir, gh0stfase1 are an absolute champion, thank you!! that was probably the most helpful help i’ve ever gotten, thank you so much,  
so in my case, you’re example (which i tested) didn’t work, buuuttt, it made me realize at-least, that it should be working, and i so tested on more thing, which had to do with a movement plugin that i was running, and after i removed that plugin, the attach event worked perfectly.

and looking at your blueprint here also shows exactly another question that i was wondering about which is repnotify and how to use it, so thank you double, a lot of muddy confusion is now clear!

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [May 17, 2022, 1:42pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/11 "2022-05-17T13:42:39Z")

</div>

Success!! That’s great to hear you worked your way through it.

> …buuuttt, it made me realize at-least, that it should be working…

Sometimes it’s enough to know you’re not crazy 😉

Great work and good luck going forward.

---

<div class="post-metadata">

**Author:** ![Mihai.e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mihai.e](https://forums.unrealengine.com/u/Mihai.e)\
**Post date:** [September 14, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/multicast-attach-actor-to-actor-not-working/558718/12 "2024-09-14T13:06:39Z")

</div>

If you attach a character to anything and disable the collision, make sure you disable the movement for the character tho. Tip: put the possess node last
