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"

Blueprint as long as I am in the trigger area

HI guys,

I have been working on a project, but I kinda faced a problem.

When I made blueprint for a trigger in the map I used OnComponentBeginOverlap, but this seems to be activated only once (Only when I enter the trigger). Is it possible to find something like as long as I am in the trigger it stays activated Like a loop.

Thank you,

Product Version: UE 4.13
Tags:
more ▼

asked Dec 30 '16 at 11:54 AM in Blueprint Scripting

avatar image

JiSupport
3 1 3

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

1 answer: sort voted first

You could set a timer on the overlap event, and pause it when overlap ends.

Overlap Begin (Check for Timer : Create if it doesn't exist. / [Unpause] if it does.)


And the End. alt text

more ▼

answered Dec 30 '16 at 12:16 PM

avatar image

Looniper
766 22 7 36

avatar image JiSupport Dec 30 '16 at 01:07 PM

Hey Looniper,

I tried to implement the timer you showed me but it doesn't seem to do what I need. This is the blueprints I made including the timer did I use it in a wrong way?

pic1.png (87.8 kB)
pic2.png (170.1 kB)
avatar image Looniper Dec 30 '16 at 01:58 PM

Because you aren't using an event, you are still drawing from the Overlap to make things happen - but it isn't being called (only the first time)

You need to save a reference to the (2D side scroll character) causing the overlap, and use that in the timer-driven function that causes the action. Store Actor and Start Timer


Then have the Function (set in the Timer) do what you would be having the Overlap event itself do. The Event-Function

I'm not sure the result you are looking for - but whenever the 2D side scroller character (actor) bumps into the box, it will start moving the actor up and right (100 units) or down and left (50 units) every second.

overlap_events.jpg (201.1 kB)
the_function.jpg (125.8 kB)
avatar image JiSupport Dec 30 '16 at 04:40 PM

Thank you so much!

avatar image Looniper Dec 30 '16 at 05:08 PM

Was that what you were trying to get it to do?

I'll be around most of the day if you need more help.

(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