View Single Post
02/25/18, 07:09 PM   #1
Cardinal05
AddOn Author - Click to view addons
Join Date: Feb 2018
Posts: 33
[implemented] Housing API Request (Furniture State Management)

What has been provided so far for the Housing API is great -- and we have been able to build a number of useful (and fun) add-ons with it. Given housing's popularity, a large number of requests have been made by players. One very common request has been for the ability to automatically reset lights, incense and other interactive items to a particular state (On, Off, etc.). With that in mind, I wanted to suggest 3 new, related functions if at all possible:
  1. Function to read the current "State" of a specific Furniture Id. For example:
    HousingEditorGetFurnitureState( furnitureId ) returns "On" or "Off" for a given Light furnishing. Ideally, this would work for any furnishing that has multiple states.
  2. Function to set the current "State" of a specific Furniture Id. For example:
    HousingEditorToggleFurnitureState( furnitureId, state ) could change an Incense to "On" or "Off".
  3. Function to identify the possible states of a given Furniture Id. For example:
    HousingEditorGetPossibleFurnitureStates( furnitureId ) returns { "On", "Off" } for an interactive Light.

Last edited by Cardinal05 : 02/26/18 at 04:51 AM.