Determines whether an object is valid.
The object to check the validity of.
Returns TRUE if oObject is a valid object, otherwise FALSE.
This function is a widely used utility function to check the return values for functions that return objects. While looping through objects NWN functions usually return invalid objects to signify that there are no more objects left. This function can be used to test that condition.
Most of the time, this will be the same as comparing oObject to OBJECT_INVALID. There may be times where it isn't though, so it is generally recommended that you use this function.
author: Tom Cassiotis, editor: Lilac Soul