Announcement

Collapse
No announcement yet.

Decreasing in time in the middle of program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Decreasing in time in the middle of program

    Hello!
    I've made a blueprint that is changing three different abilities flashlight, noctovision and normal view. But I would like to decrease value of the novtovision batery in time while its on. I know i should use event tick to decrease in time but i dont know how to implement this in the middle of the blueprint. I want it to decrease value while its on branch pointed on the picture. The noctovision batery value is set to 100 and conected to "EventBeginPlay". Sorry if my grammar is bad
    Attached Files

    #2
    Open the tick gates

    What you're looking for is a Gate, and here's an example that should integrate into what you've got already:

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	58.4 KB
ID:	1131565

    Comment


      #3
      As for the logic you can use a looping timer to decrease the value, stopping the timer when you release the mouse button.

      Comment


        #4
        It's working with the gate. Thank you very much for help!

        Comment

        Working...
        X