Announcement

Collapse
No announcement yet.

[SOLVED] TPS-Blueprints Wounds healing over time

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

    [SOLVED] TPS-Blueprints Wounds healing over time

    Hello,
    I have implemented a damage system for my TPS character in which he can receive multiple wounds, each one causing him to lose blood over time using a timer. Each wound, depending on its type has its own healing time cost in seconds, represented by a float value in the wound struct. I'm storing all the wounds character has in an array from which I'm able to take and calculate the total blood loss over time. I'm trying to find a way to keep track of the healing time that remains of each wound so I can change the blood loss accordingly. Do you have any ideas on how such thing can be done? Thank you!

    Click image for larger version  Name:	UE$TPS_Bloodloss_System.jpg Views:	16 Size:	253.8 KB ID:	1741229


    [SOLVED]

    I figured out the following solution. Don't know if it is the most efficient but is something. So, within the same loop, I substruct 1 from the healing time of the current wound element. This in combination with the timer that triggers the blood update system gives me the result I was looking for!

    Click image for larger version

Name:	UE$TPS_Bloodloss_System_Solved.jpg
Views:	4
Size:	251.5 KB
ID:	1741563
    Attached Files
    Last edited by stre; 04-04-2020, 03:29 PM.
Working...
X