SetLockKeyTag(object, string)

Set the key tag required to open the object.

void SetLockKeyTag(
    object oObject,
    string sNewKeyTag
);

Parameters

oObject

A door, placeable or trigger.

sNewKeyTag

The tag of the key that is required to open the locked object.


Description

Set the key tag required to open the object.

This will only have an effect if oObject is set to "Key required to unlock or lock" either in the toolset or by using the scripting command SetLockKeyRequired().



Version

1.67

See Also

functions:  GetLockKeyTag | GetLockKeyRequired | SetLockKeyRequired | GetLockLockable | SetLockLockable
categories:  Get Data from Object Functions


author: Mistress