#query.item_in_use_duration

1 messages · Page 1 of 1 (latest)

weary vault
vapid canopy
#

I want the output when the item's usage time reaches 100

weary vault
#

Ah, I see. Use q.item_in_use_duration>=100 then

#

In an animation controller at least

#

Is that what you're looking to trigger something from?

#

As you can only do very basic things from the item file itself

vapid canopy
#

query.is_using_item==1.0 && q.item_use_duration>=5

weary vault
#

Sorry, I was mistaken. It's actually q.item_in_use_duration

#

And you don't need the q.is_using_item

vapid canopy
#

ok

#

@weary vault When using it, it already activates

#

Even increasing the time and use it triggers immediately

weary vault
#

Huh. I haven't used the query much myself, so there might be something wrong with the query. Can you send your animation controller?

vapid canopy
#

?

weary vault
#

Have you tried moving the transitions to states 1-9 into state 0 instead of the default state? Maybe there's something weird going on with that

vapid canopy
#

@weary vault If you remove the query q.item_in_use_duration the animation controller works normally

#

I already said that the problem is in the query

weary vault
#

It might just be a broken query then. Also, wdym by works normally without the query? Does it have the correct delay? Because it seems like without the query it would activate instantly anyway unless I'm missing something

#

Becauae from my understanding, what it seems to be doing is to say you're using the katana as soon as you use it, and then not transition back to the original state to wait for the rest of the time