StringToObject( string )
- A string containing a hexadecimal object id.
Convert sHex, a string containing a hexadecimal object id, into an object reference. Counterpart to ObjectToString.
Since this converts from ObjectToString (which outputs a string such as "0x040105001") the obvious use is being able to store objects as strings for later use. This mainly applies to the newest SQLite database functionality where the concept of an "object" isn't available.
Of course if you are using this function it is recommended to use GetIsObjectValid not != OBJECT_INVALID to check it is a valid reference, and possibly GetObjectType to check it is of the expected type. Running this on old objects stored with ObjectToString after a module reset is not recommended at all since all object IDs will be reset.
This function was added in 1.80.8193.14 of NWN:EE.
|functions:||ObjectToString SqlBindString SqlGetString|