Project Zomboid

Project Zomboid

Working Vending Machines
 This topic has been pinned, so it's probably important
DisgracedPilot  [developer] 21 Feb, 2023 @ 9:12am
Questions and Answers
Please post questions here.
< >
Showing 1-14 of 14 comments
DisgracedPilot  [developer] 21 Feb, 2023 @ 10:03am 
Originally posted by Русский кот:
Is the product in the vending machine endless?

No, there is a limited number of products in each machine. It number is random, so some machines may have a large stock and others may be empty.
STUNT SHOW 25 Feb, 2023 @ 2:53pm 
its possible to break the vending machine window without buying anything that gets stuck?
DisgracedPilot  [developer] 25 Feb, 2023 @ 5:42pm 
Originally posted by Blueberry:
its possible to break the vending machine window without buying anything that gets stuck?

Not yet. In the near term, I'll implement an action to shake the machine, which will generate noise and possible trip an alarm. Longer term, I'm looking into features like breaking the glass.
OnyxGuardian1337 16 Apr, 2023 @ 9:43am 
Do the machines "restock" when loot respawn is enabled?
DisgracedPilot  [developer] 16 Apr, 2023 @ 10:02am 
Originally posted by OnyxGuardian1337:
Do the machines "restock" when loot respawn is enabled?

They do not restock at this time. I'll look into that and see if it's easy to implement.
OutoftheLoop 22 May, 2023 @ 6:20pm 
could you trick the receptacle. say the classic coin on a string trick.
and if you shook the machine, would it fall on top of the character.
Sucurix 9 Nov, 2023 @ 11:03am 
How can I implement the sale of x object?
DisgracedPilot  [developer] 9 Nov, 2023 @ 2:06pm 
Originally posted by Sucurix:
How can I implement the sale of x object?

I can't help with modifications, but I can refer you to WVMBuyItem.lua, Line 50. That is the code for checking vending machine type and defining which items to dispense.
Nandi 1 Jan, 2024 @ 4:58am 
Question - how do i spawn these? I can't find it in the item list or tileset?
DisgracedPilot  [developer] 1 Jan, 2024 @ 1:08pm 
Originally posted by crayven_ady:
Question - how do i spawn these? I can't find it in the item list or tileset?

Sorry - it's been a while and I forgot exactly how to do it. I remember setting it up in debug mode. It's probably similar to spawning furniture.
莫名某某 28 Jan, 2024 @ 7:44am 
How do I know how much is left in a vending machine?
If I move a vending machine, does the amount of leftovers in it change?
Is the initial quantity of goods completely random? Is it related to loot Settings?
Can I add sandbox options for the number of items and whether there is a jam?
DisgracedPilot  [developer] 28 Jan, 2024 @ 9:35am 
Originally posted by 3023125678:
How do I know how much is left in a vending machine?
If I move a vending machine, does the amount of leftovers in it change?
Is the initial quantity of goods completely random? Is it related to loot Settings?
Can I add sandbox options for the number of items and whether there is a jam?

Just like a real machine, there is no way to know how much is left. Moving a vending machine does not affect its state. There is a random amount of stock in the machine, but it is not controlled by loot settings. There are no controllable sandbox settings, but there are some parameters in the code that are easily adjusted.
CJ187 19 Feb @ 11:06am 
please can you also implement this feature in your mod:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/changelog/3194049112

he added support to use money in each inventory.
DisgracedPilot  [developer] 19 Feb @ 11:25am 
Originally posted by CJ187:
please can you also implement this feature in your mod:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/changelog/3194049112

he added support to use money in each inventory.

Sorry, I can't add any new features right now.
< >
Showing 1-14 of 14 comments
Per page: 1530 50