View Single Post
08/01/18, 09:04 AM   #4
Cardinal05
AddOn Author - Click to view addons
Join Date: Feb 2018
Posts: 33
Originally Posted by Shinni View Post
I haven't tested this, but I think what you are looking for are variation names.
When you preview an object, you can preview its different variations. In case of furniture these variations are the different states. E.g. when previewing a light source, you can toggle the light on/off by selecting a different variation.
So I think GetPlacedFurniturePreviewVariationDisplayName(furnitureId, variationIndex) does already do what you are looking for.
You were 100% correct. The only detail I would point out (for anyone that's interested) is that the Object State Index is 0-based and the Preview Variation Index is 1-based. So just pass Object State Index + 1 to the GetPlacedFurniturePreviewVariationDisplayName function for variationIndex and you're good to go.

And with your help in finding that... this thread can now be closed. <3