Jump to content

Photo

need some help with a vending machine

fo4 creationkit vending machine tutorial help

  • Please log in to reply
3 replies to this topic

#1
redfandango

redfandango

    Stranger

  • Members
  • Pip
  • 6 posts

so i'm making a shelter and i have some vending machine models, however i have no idea how to get them to work.
Does anyone by any chance have a script to automatically open a store when you interact with an object? (as with regular FO4 vendors)

 

(this is the vending machine model)

d79fa5c79d2fa6147eacd5d8832c7ad7.jpg



#2
Zorkaz

Zorkaz

    Resident poster

  • Premium Member
  • 5,150 posts

Since they are not actors it might not be possible. But there are some simple container scripts that could work. Or even better using a messagebox



#3
DiodeLadder

DiodeLadder

    Old hand

  • Supporter
  • PipPipPip
  • 552 posts

Hello redfandango,

 

As Zorkaz said, the barter menu is tied to actors but what you can do is to create a dummy NPC whose sole purpose is to act as a vendor when your vending machine is activated.

 

1. Create a dummy vendor NPC and a vendor faction.

 

Spoiler

 

(I have the "essential" and "unique" boxes ticked here, but this is completely unnecessary.)

 

2. Create a dummy interior cell to house this dummy NPC vendor and the vendor chest.

 

Spoiler

 

The cell doesn't have to be functional. Just something to hold the NPC and the chest.

 

3. Create an activator to access this dummy vendor NPC.

 

Spoiler

 

The vendor NPC and the activator share the same name for consistency when bringing up the barter menu.

 

4. Attach a script to this activator.

 

Spoiler

 

This script example plays a sound FX, and then opens a barter menu with the dummy vendor NPC.  I think I had to disable player control while the sound FX played so that the player won't move once it is activated.

 

Once this thing is activated in game, it will directly show the barter menu associated with the dummy NPC.

 

I hope this helps.


Edited by DiodeLadder, 07 September 2021 - 03:02 am.


#4
thousande

thousande

    Enthusiast

  • Premium Member
  • 197 posts

You may explore Talking Activator

 

AFK. I think interactable intercoms etc. are TalkingActivators.

 

Add a voice type and you can use the the TalkingActivator for quest/dialogue.

 

Also, as everything activator I think the nif must have collision data in order for the activation to work.

 

Fo4:

https://www.creation...alkingActivator

 

Skyrim (some more info):

https://www.creation...alkingActivator







Also tagged with one or more of these keywords: fo4, creationkit, vending machine, tutorial, help

IPB skins by Skinbox
Page loaded in: 0.606 seconds