Jump to content

Workshop door activate


Recommended Posts

so I started creating a mod that has doors that can be placed while in the workshop mode that will allow the player to load into another cell a lot like the build your own vault mod. I am new to the PCS so don't really know what I'm doing. which from what if seen so far this code below should work but doesn't. I'm assuming I need a lot more like a self-reference for the door but I'm not sure.






Scriptname FSE_Teleport:FSE_TeleportPlayer extends ObjectReference Const


ObjectReference Property TeleportLocation Auto Const


Message Property WasOpened Auto Const


Event OnActivate(ObjectReference akActionref)
Game.FastTravel(TeleportLocation)
WasOpened.show()


EndEvent



the references are set on the door script and the message is just a pop-up message to let me know its running.

Edited by hellwolf95
Link to comment
Share on other sites

Are you testing on survival mode? Because if so, Game.FastTravel doesn't work, it's bound to the same rules the Pip-Boy is. There's a FormList that contains the allowed travel targets in survival, should start with HC_*, that you can inject your location markers into.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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