Difference between revisions of "SetOpen - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rasikko
imported>Rasikko
m (→‎Notes: clarified note a little better.)
 
Line 29: Line 29:


== Notes ==
== Notes ==
* In addition to opening a door, it will also remove any lock level that is placed on it.
* When used to open a door, it will also remove any lock level that is placed on it.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[GetOpenState - ObjectReference]]
*[[GetOpenState - ObjectReference]]

Latest revision as of 05:28, 26 May 2021

Member of: ObjectReference Script

Opens or closes this object.

Syntax[edit | edit source]

Function SetOpen(bool abOpen = true) native

Parameters[edit | edit source]

  • abOpen: Whether to open or close this object
    • Default: True

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Opens this door
JailDoor.SetOpen()


; Closes this door
JailDoor.SetOpen(false)

Notes[edit | edit source]

  • When used to open a door, it will also remove any lock level that is placed on it.

See Also[edit | edit source]