GetLockLockable

From NWN Lexicon



Contents

[edit] GetLockLockable(object)

Check whether or not an object is lockable.

int GetLockLockable(
    object oObject
);

[edit] Parameters

oObject

The target object.


[edit] Description

Returns a true/false value indicating whether or not oObject is lockable. Returns TRUE if oObject can be locked. Returns FALSE if oObject is not lockable. This function has no error value.



[edit] Version

1.22

[edit] Example

// This will determine if an object is lockable
void main()
{
    object a;
    a = GetObjectByTag("door");
    if(GetLockLockable(a))    //Requires a key?
        SendMessageToPC(GetFirstPC(),"It is lockable");
}

[edit] See Also

functions: 

GetLockKeyTag



 author: GoLeM, editor: Kristian Markon, Mistress
 

Personal tools
Categories