So I wanted to make a cooldown system, which got no help, so I tried to recreate it after my idea.
I got it to some part, like setting the value of each ability on each level.
But I wanted to make a struct to each unit and to be able to refer to their abilities' cooldown.
Here's the idea:
X will be the value of <Ability ID> on level <Level>.
Now the other one:
Y will be the <Unit ID>'s <Ability ID>'s value. (<Unit ID> will be it's custom value created by PUI)
This value will exist locally, and unit-specific. (This is because it shall be able to get modified)
I made so far the first part. But I can't make the other part. Please help me if you could write something clever!
Thanks
I got it to some part, like setting the value of each ability on each level.
But I wanted to make a struct to each unit and to be able to refer to their abilities' cooldown.
Here's the idea:
Code:
a[<Ability ID>].cd[<Level>] = X
Now the other one:
Code:
h[<Unit ID>].id[<Ability ID>] = Y
This value will exist locally, and unit-specific. (This is because it shall be able to get modified)
I made so far the first part. But I can't make the other part. Please help me if you could write something clever!
Thanks