Jump to content

Cold Drinks Fridge and connecting terminal/intercom to vendor


Recommended Posts

Attach a new script to the activator, and append this code:

Actor Property ActorRef Auto Const

Event OnActivate(ObjectReference akActionRef)
	ActorRef.ShowBarterMenu()
EndEvent

Save it, and then go to the properties and fill the ActorRef with the actor that will act as your unique merchant for all your activators. It will just open their merchant container, with no dialogue.

Link to comment
Share on other sites

Thank you , the vendor menu comes up although without any caps or all the items in the list :/

Could that code be used in a similar manner to connect all player home containers to a centralised one ?

 

Make sure the vendor NPC is properly set up with a merchant faction. Take a look at how the other vendor NPCs are set up in the vanilla game, and see if you missed anything. :smile:

 

As for the container, yes, it's the same approach. Set up a container NIF as an activator and make it target the actual container :

ObjectReference Property TargetContainer Auto Const


Event OnActivate(ObjectReference akActionRef)
	If (akActionRef == Game.GetPlayer())	
		TargetContainer.Activate(akActionRef)		
	EndIf
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...