Tabletop Simulator

Tabletop Simulator

Ikke nok vurderinger
Item Spawner/Selector
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Number of Players: 1, 2, 3, 4
Assets: Scripting
Filstørrelse:
Offentliggjort:
Opdateret:
70.910 KB
19. juni 2019 kl. 6:11
29. apr. 2020 kl. 9:24
13 ændringsbemærkninger ( vis )

Abonner for at downloade
Item Spawner/Selector

Beskrivelse
An item spawner/selector script that allows you to select options and spawn/select an item in a bag that matches those options.
4 kommentarer
BaconCatBug™  [ophavsmand] 11. aug. 2023 kl. 20:56 
Feel free to fork and fix this
BaconCatBug™  [ophavsmand] 11. aug. 2023 kl. 20:55 
No idea, probably not.
RankMayor 11. aug. 2023 kl. 13:33 
does this still work?
Coping Kobold 4. maj 2023 kl. 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})