I can't figure out how to get teleportation to work, doesn't help that I don't really have much of a clue when it comes to papyrus scripting. Anyway what I'm trying to do is give users of my mod "The Wild Wasteland" a way to get into my testing cell, mainly for xbox users as they can't use console commands. Basically I've tried making a radio, a television, a button and a holotape that are supposed to teleport the user to the cell. However none of it works and I'm close to ripping my hair out. Here's what my most recent attempt looks like. Also I can't compile terminal fragments for whatever reason. If someone could explain to me what I'm doing wrong here I'd really appreciate it.
Current Attempt:
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
Scriptname Fragments:Terminals:TERM_000WZWWDebugHolotapeTer_0101C454 Extends Terminal Hidden Const
;BEGIN FRAGMENT Fragment_Terminal_01
Function Fragment_Terminal_01(ObjectReference akTerminalRef)
;BEGIN CODE
game.getplayer().moveto(wzwwteleportref)
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Also I've tried this:
Scriptname WZWWDebugTeleport:WZWWDebugTeleport extends ObjectReference Const
{ObjectReference Property teleportLocation Auto Const
Event OnActivate(ObjectReference akActionRef)
ObjectReference akActionRef = teleportLocation
game.getplayer().moveto(wzwwteleportref)
EndEvent}
ObjectReference Property teleportlocation Auto Const