GetObjectType
From NWN Lexicon
Contents |
[edit] GetObjectType(object)
Determines what type the object is.
int GetObjectType( object oTarget );
[edit] Parameters
oTarget
The object to find its type.
[edit] Description
Returns the object type (OBJECT_TYPE_*) of oTarget and 0 if oTarget is not a valid object.
[edit] Remarks
Returns OBJECT_TYPE_ALL for sound objects.
[edit] Known Bugs
This function doesn't return -1 on error as it claims in the function's description in the Script Editor. Nor does it return OBJECT_TYPE_INVALID for invalid objects. Return value on error is always 0.
[edit] Version
1.61
[edit] See Also
constants: |
author: Tom Cassiotis, editor: Charles Feduke, additional contributor(s): Sunjammer