How to enable overlap events on a landscape?

I am using overlap events to explode a rocket shot from a rocket launcher. Problem is this doesn’t trigger on landscapes so it goes right through. Can’t see any options to enable overlap events and hit events aren’t triggering either. I’ve tried just using the overlap event and also on tick getting all actors that are overlapping and iterating through, the landscape doesn’t work with either.

Help would be appreciated. Cheers

Do you have collision set on the landscapes? If so, a collision channel for the landscape?

The landscape has a custom collision preset that looks like this:

http://iforce.co.nz/i/41owiyhk.vd2.png

The collision is working fine for all my other characters etc, just broken with projectiles since they use overlap events.

What if you use Hit Events for landscape instead of overlap?

Hit events can even give the location of the touch, letting you spawn the explosion in that spot with ease. Let your rocket overlap with everything else but just block the landscape. It might work better on the long run.

1 Like

Yep, I’ve tried that, no luck. As I said in the questions hit events on the rocket aren’t triggering on anything which is why I’m using overlap events. I’d like to use hit events to get that location but resorted to overlaps when they weren’t triggering which is fine for everything aside from the landscape.

I am also having issues with the landscape not triggering overlap events, but everything else does. Solution?

4.11 this still doesn’t work. Could someone tell us how to register overlap events on landscape?

same problem. I am attempting to determine if an actor is ‘inside’ a piece of terrain but this is proving to be quite difficult because Terrain collision appears only to exist on the ‘surface’ of the terrain (the interior space does not overlap anything)

Up! Having this problem too…

Bump still no solution or official response

I was able to reproduce this same issue with my spellcasting system. My fireball would just go through the landscape and never fire a hit or overlap event. It was very odd. I fixed it by dragging my Sphere Collision component to be the DefaultSceneRoot. As soon as I did that, the hit events started firing. Overlap events still do not fire, but hit events are good enough for me as I can use that event to trigger my explosion.

If you want to reproduce my results, create a ThirdPerson blueprint project. Add a landscape. Create a new blueprint derived from Actor. Add a sphere collision component. Change the Collision Preset on the Sphere Component to “Block All” Add a Projectile Movement Component. Set the Projectile Initial Speed to 2,000. Create an on hit event in this new blueprint that prints out the name of the object it collides with (Other Actor → Get Object Name). Now fire the projectile and you will notice it goes through the landscape. Open the projectile blueprint back up and drag the Sphere Collision Component onto the DefaultSceneRoot (this makes it the scene root). Now fire the projectile again and it collides with the landscape and prints “Landscape_0” on the screen.

2 Likes

UE 4.13 adds the following update: “Added a Generate Overlap Events flag to Landscape Actors.”

Yes I have it working with a shape trace. Version 4.13 has landscape overlap exposed.

the actual overlap has to occur. if the overlapping actor in question starts already overlapping the landscape, the event will not fire. I have a projectile that collides with the landscape and triggers the event, at which point it conducts a sphere trace (because overlap events do not have the hit result populated). I need to modify where my sphere trace occurs because it can’t start overlapping the landscape or it won’t detect anything. Everything works fine though if you take that into account

I’m having problems with this as well and using hit events is not an option for me. Does anyone know a different workaround?

Oh, I didn’t think of using a sphere trace at all! Thank you for your reply. For some reason I still can’t get overlaps to work with a landscape in 4.14. So maybe the bug reappeared, or I’m simply doing something wrong.

Either way, I’ll just stick with the traces for now.

UE 4.21 here, with a landscape selected, there should be an option in the “details” panel called “generate overlap events”

2 Likes

9 years later and your comment helped me haha!