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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Overlap Event Limit

Is it possible to limit the number of a single blueprint's overlap events a pawn is affected by?

For instance, I have a blueprint that constantly pushes pawns in the direction it's facing via a timeline that applies force, but if I have two of those overlapping at any point (to create a curve, for example), the force applied is increased as it adds the two blueprints together.

Is there any way to make it so that while a pawn is overlapping with one instance of that blueprint, it is unaffected by the others?

Product Version: UE 4.10
Tags:
more ▼

asked May 03 '16 at 09:49 PM in Blueprint Scripting

avatar image

RMelley
1 1 2 3

avatar image ZoltanE May 04 '16 at 07:17 AM

How do you apply force to the pawn?

avatar image RMelley May 05 '16 at 06:52 PM

Like this: alt text

add force.png (238.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Ah, figured it out!

Turns out I was organizing bools the wrong way. Now, I have it so that the event tick constantly checks for Bool A, which is enabled if Bool B (which is cast from the player pawn) is checked off, which it is by default. On overlap, if Bool B is checked, then Bool A is checked, and after a 0.1 second delay, Bool B is unchecked. On end overlap, Bool A is unchecked, and Bool B is checked back on.

more ▼

answered May 05 '16 at 10:21 PM

avatar image

RMelley
1 1 2 3

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

It might be ticky, but consider a bool check with Interface

Maybe if you tell us a little bit more as to what you're trying to accomplish, because you can probably use components of the custom gravity project available from the community. Because it sounds like you're doing something similar to gravity but it seems exclusive, rather then summative over all components.

more ▼

answered May 04 '16 at 06:50 PM

avatar image

mrg7_
56 1 4 12

avatar image RMelley May 05 '16 at 06:58 PM

I guess it's kind of like that, but essentially what I'm trying to do is create a water current that pushes the player along a certain path. Using the blueprint above, I'm using a series of cubes that push the player in a specific direction, regardless of where the player is facing.

However, if any of these overlap, or if the player is touching two at once, the applied force is multiplied due to both of them firing off their overlap event. I'm currently trying to use bools to check to see if it's overlapping with that blueprint before doing the overlap event, but that hasn't seemed to accomplish anything.

Is it possible to "tag" blueprints, and have the player pawn only be able to trigger once at once?

(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