Difference between revisions of "SetLockLevel - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Catwheezle
(Added "see also" section items.)
imported>Scrivener07
Line 20: Line 20:
; Set the lock to very easy
; Set the lock to very easy
WeakChestProperty.SetLockLevel(0)
WeakChestProperty.SetLockLevel(0)
; Set the lock to needs key
WeakChestProperty.SetLockLevel(225)
</source>
</source>



Revision as of 18:22, 29 June 2012

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(225)

See Also