x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.7
Tags:
more ▼

asked Jun 25 '15 at 01:50 AM in Blueprint Scripting

avatar image

Crackerhead
31 2 4 6

avatar image spazchicken Jun 25 '15 at 02:51 AM

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

avatar image Crackerhead Jun 25 '15 at 02:55 AM

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

avatar image Crackerhead Jun 25 '15 at 02:54 AM

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

avatar image Achilleon Jun 25 '15 at 03:36 AM

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.

avatar image Crackerhead Jun 25 '15 at 03:38 AM

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.

avatar image HuntaKiller Dec 03 '15 at 02:57 AM

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

avatar image dsmith Apr 09 '16 at 08:14 PM

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

avatar image UnexpectedSquirt Apr 27 '16 at 03:21 PM

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)

avatar image AndrewFord Jun 02 '16 at 08:56 AM

Up! Having this problem too...

avatar image HuntaKiller Jul 05 '16 at 05:28 PM

Bump still no solution or official response

avatar image Efrye Dec 11 '16 at 06:12 PM

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

avatar image HuntaKiller Dec 11 '16 at 06:27 PM

Yes I have it working with a shape trace. Version 4.13 has landscape overlap exposed. https://answers.unrealengine.com/questions/358145/how-to-do-a-shape-trace-for-the-landscape-actor.html#answer-534719

avatar image Efrye Dec 11 '16 at 06:37 PM

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.

avatar image HuntaKiller Dec 11 '16 at 06:56 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Jul 07 '16 at 01:29 AM

avatar image

Dartanlla
2.6k 62 27 281

avatar image Dartanlla Sep 03 '16 at 05:01 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Feb 16 '19 at 03:17 AM

avatar image

Alex Chozabu P-B
36 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question