GetLockedObject
From NWN Lexicon
Jump to navigationJump to search
GetLockedObject(object)
Finds the closest locked object up to a maximum of 10 objects away.
Parameters
oMaster
The object to search out from.
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.
Requirements
#include " nw_i0_generic "
Version
1.22
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");
}
#include "nw_i0_generic"
void main()
{
object a = GetLockedObject(OBJECT_SELF);
if(a != OBJECT_INVALID)
SendMessageToPC(GetFirstPC(),"YEAH I FOUND ONE");
}
See Also
functions: |
author: GoLeM, editor: John Shuell