GetLockUnlockDC(object)

From NWN Lexicon
Jump to navigationJump to search

Find a lock's unlock DC.

int GetLockUnlockDC(
    object oObject
);

Parameters

oObject
The locked object.


Description

Returns an integer that indicates the unlock DC for the lock. If the object doesn't have an unlock DC then the function returns 0.


Description

Returns an integer that indicates the unlock DC for the lock. If the object doesn't have an unlock DC then the function returns 0.


Example

// This will return "door"'s Unlock DC
void main()
{
    object a;
    a = GetObjectByTag("door");
    SendMessageToPC(GetFirstPC(),IntToString(GetLockUnlockDC(a)));
}

See Also

functions: 

SetLockLockDC


 author: GoLeM, editor: Kristian Markon, Mistress