GetLocked

Revision as of 15:13, 26 November 2008 by imported>Kkuhlmann
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

The GetLocked script function gets the access state of terminals and locks.

Syntax

[TerminalRef.]GetLocked

Examples

if TerminalRef01.GetLocked == 1

Returns whether terminal is locked but can still be hacked.

Notes

  • Return values:
    • 0 = unlocked (player has note, successfully hacked, difficulty=unlocked, or terminal unlocked through script)
    • 1 = locked but can be hacked
    • 2 = locked out (player failed at hacking or lock level is impossible)

See Also

GetLockLevel
Lock
Unlock

Reference

None provided.