Jump to content

[LE] A Better Way To Make Custom Shelves?


Recommended Posts

Hi.

 

I've had problems with custom shelving, you know, the sort where the player sees a row of ingots stacked on a shelf, linked to a hidden chest. The player looks at the shelf and is prompted to 'Search Ingots'.

 

Problems normally arise when the items don't remain where they are on the shelf but ping around with havoc. Up until now I've been using method 1 (below) for these shelves. I'm now wondering why I can't do this another way (method 2). I've tested it in a test cell and not only is it quicker but it uses less memory and has no need for collision barriers. Given that this method does away with loads of scripts on items and doesn't need to use memory for the collision barrier(s), I'd have thought it was better for optimisation, too. The end result is exactly the same for the player. Is there a good reason why I shouldn't do this my way? My test used two identically stacked shelves, created by the two methods. Method 2 used 25% less memory. Method 2 also avoids the possibility of overlooking scripts or forgetting to set properties. You are always using a static item that can't be activated or moved.

 

Method 1. (As in Darkfox127 tutorial)

 

  • Place shelf
  • Find item and place on shelf
  • Edit item and add two scripts: DefaultBlockActivate and DefaultDisableHavokOnLoad
  • Edit the first two properties of the second script.
  • Repeat with other items for the shelf or duplicate and use 'ctrl F' if it's easier
  • Place collision barrier around the shelf
  • Add trigger and link to chest

Method 2.

  • Place shelf
  • Find item for shelf and edit the base to copy the nif model
  • Create and name a new static item. Edit this item and paste in the copied nif model
  • Add the static item to the shelf
  • Repeat with other items or duplicate when possible
  • Add trigger and link to chest
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...