Hello outthere.
I am wondering if there is a bug with this function, or if i am using it wrong.
When i call GetCollectibleCooldownAndDuration with a specific collectionId, i don't initially get the cooldown information for that specific collection ID, but rather the last used collection ID.
- Before using the collection-item, i call the method GetCollectibleCooldownAndDuration to get a information for the specific collection ID (duration and remaining time).
At this point i get the information for the last called collection item, and would have expected duration for this collection ID.
- Then i use the collection item, and hook Update up to the event ..COOLDOWN_UPDATED.
The first 20-30 responses has a coldownRemaining of 0, and a coldownDuration from the previous used collectible item.
- Therefor i need to do this check, to ensure the cooldown don't end right away, but the time starts "wrong" as a result.
I hope it makes sense, and thanks in advance.