Hi,
I ran into weird problems with collisions today.
I have 2 players playing 1vs1. I am spawning units. Those units have a sphere collision which functions for senses of this unit and should be able to detect structures and other buildings.
The movement is done with SetActorLocation with sweep enabled, so the overlaps of the senses should fire.
The branch returns true, when moving the unit, which is kind of weird to me. The GetOverlappingActors always returns 0 tho.
This is the setup for the unit. The Overlap Event never fires. I am using 2 custom collision channels since I don’t need any other collisions. But I also tested it with default collision channels which had the same result.
This is the structure I want the unit to detect.
This is the situation in which I would expect the Overlap Event to fire and detect the structure. You can also see that the print behind the sweep fires.
I haven’t encountered this problem before. In the last singleplayer game I worked on there were no problems with collisions. Which makes me think the problem might be the multiplayer listen server. But I can’t find the reason why this doesn’t work. Also I tested the collisions on the server and the client. Both with the same result. The screenshot is taken on the host.
Cheers,
Proby