(Created page with "The SFurniture class is component of RoomFurniture ==Members== {{ScriptFunction|int|InventoryItemID|;|Return the inventory ID of furniture.|5= furniture = Space.Scene.Find("...") |
(No difference)
|
The SFurniture class is component of RoomFurniture
Return the inventory ID of furniture.
inventoryId = furniture.InventoryItemID;
--get InventoryID of the furniture.
Space.Log(inventoryId);
Set custom key to furniture.
--get the roomfurniture component on your furniture.
furniture.StoreCustomData("custom key","123")
Get custom data from furniture.
--get the roomfurniture component.
Space.Log(furniture.GetCustomData("custom key"));
|