SetDoorTeleport
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
A function added by the Oblivion Script Extender.
Syntax:
(void) reference.SetDoorTeleport teleportTo:ref x:float y:float z:float rot:float bTemporary:bool
Sets the reference, coordinates, and rotation to which the calling door teleports. Only the reference argument is required; the values for the others will be taken from the specified reference's coordinates and rotation if omitted.
The bTemporary argument specifies that the change should not be saved in the savegame; by default, or if the argument is zero, the change will be saved.
Notes
- If you move the TeleportTo reference, you need to reissue this function to update the door destination coordinates. They are not updated automatically when you move the TeleportTo reference.
- If the arguments for coordinates and rotation are provided, the only information taken from the teleportTo reference is its cell/worldspace, therefore you can use any persistent object in that cell/worldspace. For example, if the door teleports to the Tamriel worldspace, you can use any persistent, vanilla object as teleportTo, e.g. WaterfrontMiddleBridgeMarker or AnvilFocsleMarker .