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"

Retrigger On Component Begin Overlap

This might be a silly question but is there a simple trick to retrigger on component begin overlap events?

I need to launch the overlap event again, if a variable changes and want to know if there is a simpler solution than storing the overlapping components in variables and create a custom event that fires on the actual overlap and again, if the variable changes

Product Version: UE 4.20
more ▼

asked Oct 14 '18 at 11:16 AM in Blueprint Scripting

avatar image

183 6 12 12

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

1 answer: sort voted first

there is a function node for getOverlappingActors. I guess the engine stores an array of overlapped actors for you. You can access this node whether or not youre using the overlap events.

So when that variable changes you can use that node to find the overlapped actors so you dont have to worry about the overlap event. If you need to though you can plug execution into the same code the overlap event plugs into.

more ▼

answered Oct 15 '18 at 01:36 AM

avatar image

3.8k 18 23 20

avatar image Lord7even Oct 16 '18 at 12:20 PM

thanks for the information. I just heard in a live stream, that "getOverlappingActors" costs more performance than a line trace. Maybe I'm mistaking, since it doesn't seam that logic ;-) I leave the topic open for now since I was looking for another solution like disabling and reenabling collision or something like that. I'll test some things...

avatar image mightyenigma Oct 26 '18 at 07:38 PM

The way I handle it is to add the overlapping actor to an array in event OnBeginOverlap, and remove it for onEndOverlap event, and then I have an always-up-to-date list of all the actors that are still overlapping that volume.

Really though why are you trying to retrigger an overlap event? Why not just trigger the same function that the overlap event triggers?

(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