Tabletop Simulator

Tabletop Simulator

countObjectsWithTagInZone
1 kommentarer
Habanero 28. feb. kl. 1:02 
I stumbled upon this because I'm trying to do this exact thing (tokens go in a zone, counter says how many there are in the zone). When I drag the "test" cube into the zone, it says 0, but when I pull it out, it says 1. Shouldn't it be doing the opposite?

Edit: Ah, I think I get it. When you pick up the token from the zone, it displays the last known amount of matching tag tokens, not the current amount. This script also doesn't seem to display the current amount that are in the zone until you pick up an object from the zone. Janky but it works, thanks.