GetLastUnlocked(object)

From NWN Lexicon
Jump to navigationJump to search

Determines who unlocked the object or placeable.

object GetLastUnlocked(
    object oObject = OBJECT_SELF
);

Parameters

oObject
The object to check who last unlocked it (default: OBJECT_SELF).


Description

Returns the last object that unlocked oObject.

Returns OBJECT_INVALID if the caller is not a valid door or placeable.


Version

This function was updated in 1.89.8193.37 of NWN:EE. VM: Added oObject parameter to GetLastUnlocked().


See Also

functions: 

SetLocked

events: 

OnUnlock Event



 author: John Shuell, editor: Jody Fletcher