ZERO Sievert

ZERO Sievert

26 个评价
!VendingMachine-[mod utility]
   
奖励
收藏
已收藏
取消收藏
Scripts: Misc
文件大小
发表于
更新日期
11.686 KB
4 月 28 日 上午 10:40
5 月 16 日 下午 4:07
4 项改动说明 ( 查看 )

订阅以下载
!VendingMachine-[mod utility]

描述
--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 条留言
diziothevoice 8 月 4 日 下午 12:09 
Ah, got it
Lil-Estrogen  [作者] 8 月 2 日 下午 1:51 
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 8 月 2 日 下午 12:52 
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  [作者] 5 月 25 日 下午 8:13 
Thanks Dave!!
Dave 5 月 24 日 下午 10:57 
Awesome!!
Lil-Estrogen  [作者] 5 月 15 日 下午 8:46 
Update 1.15 fixed the conflict!
Lil-Estrogen  [作者] 5 月 11 日 下午 6:45 
Yarr, 1.14 gonna be a banger if it correctly solves the crash this time:squishyshead:
Korruption 5 月 11 日 下午 1:40 
it errors soon as you turn on the thermal and crashes the entire game.