#Run custom code once an aura trigger off - expires

1 messages · Page 1 of 1 (latest)

quick aurora
#

Is there a way to run a custom code once the aura finished? I've a TSU aura with a progressType == "static" but it also has a duration. I need to run a custom code when the aura expire for the duration. I tried to using animation but the custom code is run a lot of time. Isn't a way to run it only one time? Thanks

lament tundra
#

on hide if you only have one state.
Otherwise you could also do it through conditions by comparing remaining duration there

quick aurora
lament tundra
#

that is not how it works no

quick aurora
#

Not in action

lament tundra
#

I'm not talking about animation

quick aurora
#

My bad

lament tundra
#

but yea keep in mind that only works if you only have one state

quick aurora
lament tundra
#

I don't think it does, no

#

but as I said you can just use conditions for that

woven knoll
#

actions OnHide will run for each clone

lament tundra
#

well then there you go

woven knoll
#

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

quick aurora
#

Just last question, is there a way to get a lenght of a table without cycle it?

woven knoll
#

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

quick aurora
#

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?

woven knoll
#

gotta iterate