How to have a volume update every sec?
I have this Volume that calls to health and increases it by 10 on each overlap. What I want to start happening is for the health to update every second the pawn ( Cube ) is inside the volume? What would be the best way to implement this ?
asked Sep 11 '16 at 02:03 AM in Blueprint Scripting
Use something called a gate or set a boolean isInside to true on BeginOverlap and to false on EndOverlap. Then use that to guide the flow from your tick event.
Use the boolean you set above in an branch node and simply set the true execution pin to lower the health every tick.
answered Sep 11 '16 at 03:23 AM
What you should do:
On Begin Overlap - Start Timer - Looped, time = 1sec - Do whatever you want on custom event
Use this to familiarize yourself with them: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/
answered Sep 12 '16 at 05:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here