GetObjectModel

GetObjectModel

Description:
Function GetObjectModel get the model ID of an object.
Function GetObjectModel was added in 0.3.7 and will not work in earlier versions!


Parameters:
(objectid)
int objectid The ID of the object to get the model of.


Return Values:
The model ID of the object. -1 if object does not exist.


Examples:
new objectid = CreateObject(1234, 0, 0, 0, 0, 0, 0);
new modelid = GetObjectModel(objectid);


Related Functions
The following functions may be useful, as they are related to this function in one way or another.