SetLockKeyRequired(object, int)

When set the object can not be opened unless the opener possesses the required key.

void SetLockKeyRequired(
    object oObject,
    int nKeyRequired = TRUE
);

Parameters

oObject

A door, or placeable.

nKeyRequired

TRUE or FALSE. (Default: TRUE)


Description

When set the object can not be opened unless the opener possesses the required key.

The key tag required can be specified either in the toolset, or by using the SetLockKeyTag() scripting command.



Version

1.67

See Also

functions:  GetLockKeyRequired | GetLockKeyTag | SetLockKeyTag
categories:  Get Data from Object Functions


author: Mistress