Difference between revisions of "SetLockLevel - ObjectReference"
Jump to navigation
Jump to search
imported>Scrivener07 |
imported>RJHelms84 m (Edited the value of the "needs key" lock level to the correct value of "255", as opposed to "225" as it was incorrectly stated.) |
||
Line 22: | Line 22: | ||
; Set the lock to needs key | ; Set the lock to needs key | ||
WeakChestProperty.SetLockLevel( | WeakChestProperty.SetLockLevel(255) | ||
</source> | </source> | ||
Revision as of 22:05, 7 July 2013
Member of: ObjectReference Script
Sets the level of the lock attached to this object. If there is no lock, it will attach one, but leave it unlocked.
Syntax
Function SetLockLevel(int aiLockLevel) native
Parameters
- aiLockLevel: The level to set the lock at.
Return Value
None.
Examples
; Set the lock to very easy
WeakChestProperty.SetLockLevel(0)
; Set the lock to needs key
WeakChestProperty.SetLockLevel(255)
See Also
- Locking and Unlocking Doors tutorial.
- GetLockLevel - ObjectReference
- IsLocked - ObjectReference
- Lock - ObjectReference
- LockDoors (Procedure)
- UnlockDoors (Procedure)
- UnlockOwnedDoorsInCell - Actor
- GetLocked console command.
- GetLockLevel console command.
- Lock console command.
- Unlock console command.