How can I continuously find how many collisions happened in the last 2 seconds?
Hi, I currently have a system set up in my Level Blueprint to count how many times all instances of a class blueprint (Sphere) have collided with the walls in the level. That system loos like this:
The counter is triggered by the "Hit Event" in the class blueprint using an event dispatcher.
This works as I want it to. However, I want to use the variable generated by this to continuously update a float parameter within a Sound Cue. Which again is fine, with this system:
My problem is, I don't just want the parameter to go up in a linear scale i.e. the more collisions there are the higher the parameter goes. I need it to be continuously monitored, as in constantly updated with how many collisions there were in the last few seconds, so that the parameter can change in real time along with the amount of activity within the level.
But I'm completely stuck! Any advice would be greatly appreciated.
Thanks in advance.
asked Jan 04 '16 at 02:25 PM in Blueprint Scripting
The easy way would be to connect a 2s delay node to your set node and just decrease the value by 1 again.
answered Jan 04 '16 at 02:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here