Tabletop Simulator

Tabletop Simulator

Item Spawner/Selector
4 条留言
BaconCatBug™  [作者] 2023 年 8 月 11 日 下午 8:56 
Feel free to fork and fix this
BaconCatBug™  [作者] 2023 年 8 月 11 日 下午 8:55 
No idea, probably not.
RankMayor 2023 年 8 月 11 日 下午 1:33 
does this still work?
Coping Kobold 2023 年 5 月 4 日 上午 7:29 
I found (and fixed) a bug.

If the spawner is high above the table, the object's actual spawn position gets exponentially higher than the spawner. This is because you're essentially adding the spawner's position twice when spawning the object.

Broken code: spawnedItemPosition=self.positionToWorld({0, positionSelf.y+2, (0-((totalSections+2)*menuZ))+spawnZoneZOffset})

Fixed code: spawnedItemPosition=self.positionToWorld({0, 2, (0-((totalSections+2)*menuZ))+spawnZoneZOffset})