Does anyone know of a way to find out who has a lock if canLock() fails?
pragma encoding, "UTF-8"
// See if we can lock the object, if we can then it is unlocked
if (canLock(obj)) then
// See if we have the lock or someone else has it.
if (isLockedByUser(obj)) then
string Me = doorsname()
display("Locked by " Me)
So instead of printing Locked in the last else, I would like,
string LockedBy = doorsLockedByUser???
display("Locked by " LockedBy)