GetLockLockDC

From NWN Lexicon



Contents

[edit] GetLockLockDC(object)

Find a lock's lock DC.

int GetLockLockDC(
    object oObject
);

[edit] Parameters

oObject

The locked object.


[edit] 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.



[edit] Version

1.22

[edit] Example

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

[edit] See Also

functions: 

SetLockUnlockDC



 author: GoLeM, editor: Kristian Markon, Mistress
 

Personal tools
Categories