GetLockLockDC

From NWN Lexicon
Revision as of 00:30, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search



GetLockLockDC(object)

Find a lock's lock DC.

int GetLockLockDC(
    object oObject
);

Parameters

oObject

The locked object.


Description

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



Version

1.22

Example

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

See Also

functions: 

SetLockUnlockDC



 author: GoLeM, editor: Kristian Markon, Mistress