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: SetLockLockable | GetLocked | GetLockedObject | GetLockKeyRequired | GetLockKeyTag
categories: Get Data Functions | Get Data from Object Functions


 author: GoLeM, editor: Kristian Markon, Mistress