#Run custom code once an aura trigger off - expires
1 messages · Page 1 of 1 (latest)
on hide if you only have one state.
Otherwise you could also do it through conditions by comparing remaining duration there
With on hide it runs the code every frame for one second (if duration's text bos is lefted empty). On 144hz nomitor it's runned 144 times
that is not how it works no
I'm not talking about animation
My bad
but yea keep in mind that only works if you only have one state
So if i've a tsu with 10 clone and one expires, it doesn't trigg?
actions OnHide will run for each clone
well then there you go
but only when they are actually hidden, which would only happen automatically with a timed progressType and autohide
Could also use a C_Timer to create callbacks when the shortest duration state will "expire" to re-run the TSU and do whatever you need, if the progressType has to be static
This is my case so hide on action is perfect
Just last question, is there a way to get a lenght of a table without cycle it?
If it's just an array with keys 1, 2, 3, etc.. you can use the # operator
If it has other non-sequential keys you have to iterate
So if i need the lenght of the allstates table i've to iterate?
Or there is a function/way to get it without iterate?
gotta iterate