Difference between revisions of "Unlock"
Jump to navigation
Jump to search
imported>Vswe m (Added Search Terms) |
imported>Bruneauinfo (Changed syntax and examples to show use with a particular object.) |
||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
Unlock unlockAsOwner (optional) | ObjectRef.Unlock unlockAsOwner (optional) | ||
'''Example:''' | '''Example:''' | ||
Unlock | Unlock | ||
Unlock 1 | Unlock 1 | ||
MySpecialDoorRef.Unlock | |||
Latest revision as of 10:46, 13 December 2010
Syntax:
ObjectRef.Unlock unlockAsOwner (optional)
Example:
Unlock Unlock 1 MySpecialDoorRef.Unlock
Unlocks the door or container. If you use the optional UnlockAsOwner flag, the door will be treated as if the owner unlocked it, for purposes of the AI determining whether entering the cell behind the door is treated as trespassing or not. With UnlockAsOwner = 0, whether the cell is treated as public or private is unaffected.
See Also[edit | edit source]