GetLockedObject

From NWN Lexicon



Contents

[edit] GetLockedObject(object)

Finds the closest locked object up to a maximum of 10 objects away.

object GetLockedObject(
    object oMaster
);

[edit] Parameters

oMaster

The object to search out from.


[edit] Description

Returns the closest object that is locked within a 10 object radius. If there are no locked objects within the 10 object radius then it will return OBJECT_INVALID.



[edit] Requirements

#include " nw_i0_generic "

[edit] Version

1.22

[edit] Example

// Will find if any objects are locked within 10 objects
#include "nw_i0_generic"
void main()
{
    object a = GetLockedObject(OBJECT_SELF);
    if(a != OBJECT_INVALID)
        SendMessageToPC(GetFirstPC(),"YEAH I FOUND ONE");
}

[edit] See Also

functions: 

GetLockLockable



 author: GoLeM, editor: John Shuell
 

Personal tools
Categories