GetLockLockable

From NWN Lexicon
Revision as of 00:30, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search



GetLockLockable(object)

Check whether or not an object is lockable.

int GetLockLockable(
    object oObject
);

Parameters

oObject

The target object.


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.



Version

1.22

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");
}

See Also

functions: 

GetLockKeyTag



 author: GoLeM, editor: Kristian Markon, Mistress