Hi everyone, I’m working on a multiplayer shooter project, but I’m having some trouble getting my gun system to work. Here’s how it’s laid out:
- When the gun is equipped, spawn a gun actor and attach it to the owner’s hand socket (this is working)
- When the gun is not equipped, destroy the gun actor completely (not working)
I think the issue is with my replication of the gun actor, but I have no idea how to do this right.
Here’s the screenshot of how I spawn the gun actors:
And how I cast to and destroy the gun actor:
(in the gun actor BP)
If anyone has experience with destroying actors over multiplayer i’d really appreciate any help, as i’ve been tearing my hair out over this for a good week. Thanks a bunch!