SetLockLevel - ObjectReference

Revision as of 23:16, 7 July 2013 by imported>RJHelms84 (Added lock level values for convenience.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

DescriptionEdit

Sets the level of the lock attached to this object. If there is no lock, it will attach one, but leave it unlocked. The values to use are:

    • 1 = Novice
    • 25 = Apprentice
    • 50 = Adept
    • 75 = Expert
    • 100 = Master
    • 255 = Requires Key

SyntaxEdit

Function SetLockLevel(int aiLockLevel) native

ParametersEdit

  • aiLockLevel: The level to set the lock at.

Return ValueEdit

None.

ExamplesEdit

; Set the lock to very easy
WeakChestProperty.SetLockLevel(0)

; Set the lock to needs key
WeakChestProperty.SetLockLevel(255)

See AlsoEdit