Destroy Actor NOT getting called on Client
Doesn't matter if you are calling it from Switch Has Authority or directly from a cast from an OnComponentHit event. Print Strings ARE working though, so it is definitely something fishy with DestroyActor.
On further investigation, it appears that this has been a problem since 4.13 at least.
Once again, DestroyActor works for everything OTHER than when called on OnComponentHit on a Box Collision in this case.
Then there's OnCollisionBeginOverlap, again with Box Collision. Simple Cast to FirstPersonProjectile, on success, it gets destroyed, but there's a catch. On server, it happens instantly for everyone, but one client... there's this strange delay, and I don't have a delay on it.
Actor that is being getting destroyed has the following settings applied to it:
Everything else is default.
Collisions are working. Print String are working.
Just tried Applying Damage to it and ummm...something's not right.
Here's the actor that is should be getting destroyed: https://gyazo.com/2e84378e32c0188b79cd3583fd2377bd
I even used the Component Replication stuff on everything just in case that was an issue.
Just tried Set Life Span for client, no go. Obviously I have something messed up, this is a pretty important feature that someone would have noticed by now.
One last thing, the actor IS replicating physics.... but I just tried it without physics and nothing. Hoping I just missed something but who knows.
I even tried this: https://gyazo.com/d4ce4bbc93b89cba247a52cc6f605543 No go.
asked Dec 01 '16 at 07:35 AM in Bug Reports
So I've just created a simple test project with an actor called DestroyActorTest. I'm going to attach my project so you can take a look at my setup and see if my repro is correct, but I'm not seeing the same issue on my end.
Go ahead and look inside of DestroyActorTest and follow that blueprint logic. Then Play in New Window with 2 players and Create a session on the server and join with the client. You should notice when you run into the cube towards the center of the map that the cube is destroyed for both the client and server at the same time.link text
Let me know if that helps or if there is anything that I'm not doing correctly on my end to reproduce the issue.
answered Dec 01 '16 at 07:49 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here