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?
asked May 03 '16 at 09:49 PM in Blueprint Scripting
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.
answered May 05 '16 at 10:21 PM
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here