SetLockKeyRequired

// 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. // - oObject: a door, or placeable. // - nKeyRequired: TRUE/FALSE void SetLockKeyRequired(object oObject, int nKeyRequired=TRUE)

WARNING: This function is missing from NWN2 and thus any script which is imported that uses this function will fail to compile