Difference between revisions of "SetOpenKey"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>DragoonWraith
(not a record variable function, calling it a crime function for lack of a better choice)
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:


==See Also==
==See Also==
*[[SetOpenKey]]
*[[GetOpenKey]]
*[[GetLinkedDoor]]
*[[GetLinkedDoor]]


[[Category:Functions]]
[[Category: Functions]]
[[Category:Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category:Functions (OBSE v0013)]]
[[Category: Functions (OBSE v0013)]]
[[Category: Record Variable Functions]]
[[Category: Crime Functions]]
[[Category: Record Variable Functions (OBSE)]]
[[Category: Crime Functions (OBSE)]]

Latest revision as of 20:51, 21 March 2008

A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetOpenKey key:ref

Sets the key used to unlock the reference to the specified key.

Notes[edit | edit source]

  • Normally, doors only have the key set on one side of the door. Setting the key on both sides of a linked door may produce odd results, so use with caution and check the other side of the door first with
ref pDoor
ref pKey
;DoorRef is a Reference Editor ID of a door
...
set pDoor to DoorRef.GetLinkedDoor
set pKey to pDoor.GetOpenKey
if (pKey == 0)
  DoorRef.SetOpenKey SomeKey

See Also[edit | edit source]