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"

Detect Actor overlap at a specific time

Basically, I want to detect actor overlaps only when a button is pressed, instead of right when it happens with an event. Is there any easy way to do this? I don't want to do something silly like use my own variables to keep track of it in the OnActorBeginOverlap and OnActorEndOverlap events.

Product Version: UE 4.8
Tags:
more ▼

asked Aug 14 '15 at 04:42 AM in C++ Programming

avatar image

Rael5
122 13 20 30

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

1 answer: sort voted first

Hey Rael5-

You should be able to use the AActor::GetOverlappingActors() function to find all of the actors that overlap with the selected actor. You can find the syntax for the function in the documentation.

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/GetOverlappingActors/index.html

Cheers

Doug Wilsoin

more ▼

answered Aug 14 '15 at 02:45 PM

avatar image Rael5 Aug 14 '15 at 08:22 PM

Ah sweet, thanks.

(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