ZERO Sievert

ZERO Sievert

Not enough ratings
!VendingMachine-[mod utility]
   
Award
Favorite
Favorited
Unfavorite
Scripts: Misc
File Size
Posted
Updated
11.686 KB
28 Apr @ 10:40am
16 May @ 4:07pm
4 Change Notes ( view )

Subscribe to download
!VendingMachine-[mod utility]

Description
--Update 1.15 - No more conflicts and now works with all other mods! Yay!--
------------------------------------------------------------------------------------------------------

Sell any item to the vending machine, then walk away - it will turn into a loot bag!

This mod does nothing on its own, it acts as a location and bag for my other mods to spawn custom items in.

The vending machine spawns only once when new a mod loads for the first time. It won’t appear on future visits to the hub.

------------------------------------------------------------------------------------------------------

Dear modders
There 2 exposed scripts to make this work

1- To add an object to be spawned, for example "my_gun", use this:
ScriptGet("AddToVending")("my_gun")

2- To spawn the vending machine one time for your mod eg: "my_mod", hook this to "enter_hub" event:
ScriptGet("RespawnVendingMachine")("my_mod")

Note that the game will throw an error about ScriptGet("AddToVending") not existing, it will function fine once uploaded to the workshop
To avoid it you can just move this mod to your local mods folder
8 Comments
diziothevoice 4 Aug @ 12:09pm 
Ah, got it
Lil-Estrogen  [author] 2 Aug @ 1:51pm 
Hmm I didn't really make a respawn option, it's only supposed to show up once per save. If you send me your save file I could try edit it to retrigger the spawn or maybe abit later I could make a complimentary mod to force respawn it each time you enter the bunker
diziothevoice 2 Aug @ 12:52pm 
sorry, I am very noob ...but maybe my question will help other users.
Where do I have to put the scripts in order to respawn the vending machine?
Lil-Estrogen  [author] 25 May @ 8:13pm 
Thanks Dave!!
Dave 24 May @ 10:57pm 
Awesome!!
Lil-Estrogen  [author] 15 May @ 8:46pm 
Update 1.15 fixed the conflict!
Lil-Estrogen  [author] 11 May @ 6:45pm 
Yarr, 1.14 gonna be a banger if it correctly solves the crash this time:squishyshead:
Korruption 11 May @ 1:40pm 
it errors soon as you turn on the thermal and crashes the entire game.