Gets the name of a texture as defined in the model file that it was loaded from, but textures are not guaranteed to have names. Texture names are in the range 1 to GetObjectNumTextures inclusive. If you are calling this command from tier 2 you must delete the returned string with agk::DeleteString when you are done with it.
string GetObjectTextureName(UINT objID, textureIndex)