Difference between revisions of "SetOpen - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Rasikko |
||
Line 27: | Line 27: | ||
JailDoor.SetOpen(false) | JailDoor.SetOpen(false) | ||
</source> | </source> | ||
== Notes == | |||
* In addition to opening 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]] |
Revision as of 05:27, 26 May 2021
Member of: ObjectReference Script
Opens or closes this object.
Syntax
Function SetOpen(bool abOpen = true) native
Parameters
- abOpen: Whether to open or close this object
- Default: True
Return Value
None
Examples
; Opens this door
JailDoor.SetOpen()
; Closes this door
JailDoor.SetOpen(false)
Notes
- In addition to opening a door, it will also remove any lock level that is placed on it.