I'm trying to get the item names corresponding the list of models I was able to generate for Interior records. However, I am unable to find any information that can tie together the
Code: Select all
3dObjectRecord.ModelIdNum
Perhaps the larger struggle here is getting the items located within a building. I am doing the following in the hopes of being able to generate an item to place on a table within the house:
Code: Select all
DFBlock[] blocks;
RMBLayout.GetLocationBuildingData(location, out blocks);
foreach (DFBlock block in blocks)
{
foreach (DFBlock.RmbSubRecord record in block.RmbBlock.SubRecords)
{
DaggerfallConnect.Arena2.BlocksFile file = DaggerfallUnity.Instance.ContentReader.BlockFileReader;
foreach (DFBlock.RmbBlock3dObjectRecord rec in record.Interior.Block3dObjectRecords)
{
string name = GameObjectHelper.GetGoModelName(rec.ModelIdNum);
Debug.Log(name);
}
}
}
Gracias ahead of time.
- Smooth