I want to create a function to test for a player overlapping with a trigger volume after a logic sequence of events has happened. Note that the below example uses trigger volumes as a test but this can be applied to all sorts of logic tests.
Gameplay Example:
- A series of events is scripted to occur (e.g. dialog plays for a length of time)
- The script halts/loops until player is overlapping trigger volume. When this is true…
- The script continues
My current implementation looks like this:
This works fine but I’d prefer to build this into a function or custom event. I’m not sure how to do this. Neither functions nor custom events can be used to halt a script, or at least not that I’m aware of.
Does anyone have any advice? Perhaps my approach is wrong and there are blueprint commands that I’m not aware of. I should also add that I’m choosing to not use OnActorBeginOverlap type functions because these only fire off when entering or leaving and trigger volume. They will not work for when a player is already inside a volume and the test is made.