Difference between revisions of "Lock"
Altered the example formatting to show that this function can apply to an Referenced Object.
imported>Fella |
imported>Bruneauinfo (Altered the example formatting to show that this function can apply to an Referenced Object.) |
||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
Lock lockLevel ''lockAsOwner (optional)'' | ObjectRef.Lock lockLevel ''lockAsOwner (optional)'' | ||
'''Example:''' | '''Example:''' | ||
Lock 30 | Lock 30 | ||
Lock 75 1 | Lock 75 1 | ||
MySpecialDoorRef.Lock 100 | |||
Locks the door or container with the specified lock level. If you use the optional LockAsOwner flag, the door will be treated as if the owner locked it, for purposes of the AI determining whether entering the cell behind the door is treated as trespassing or not. With LockAsOwner = 0, whether the cell is treated as public or private is unaffected. | Locks the door or container with the specified lock level. If you use the optional LockAsOwner flag, the door will be treated as if the owner locked it, for purposes of the AI determining whether entering the cell behind the door is treated as trespassing or not. With LockAsOwner = 0, whether the cell is treated as public or private is unaffected. |