Package Name: (Vilva) Tycoon Decorations
Add decoration slots to your Tycoon area, where you can place decoration items.
Showcase link: Crayta
🛠 INSTALLATION INSTRUCTIONS
- Start with the “Starter: Tycoon” blueprint
- Install the package: (Vilva) Tycoon Decorations
- Add the “DecorationUser” template to your user template
- Edit your “Tycoon Area” template
** Add the “DecorationArea” template to your Tycoon Area. This must be one level below the template root.
** Add a new locator: “DecorationSlots”.
** Place one or more “DecorationSlotSmall” templates under your “DecorationSlots” locator.
** Select “DecorationArea” and add all of your “DecorationSlotSmall” entities to the script property “decorationSlots”.
It should now look like this:
This package includes an example Decoration, called “DecorationSmallLamp”. Use the “InventoryDefaultScript” to assign the item to you. Then hit F5 to playtest. You should now be able to press “Interact (E)” near a slot to place your lamp. Press again to remove it and add it back to your inventory.
⚙️ PACKAGE OVERVIEW
This package comes with its own “inventoryItemSpecScript”, which is the same as the default, with one additional property “decorationType”. Each “DecorationSlot” also has the “decorationType” property. You can only place an item on a slot, if the “decorationType” of the item matches the slot. The package has 3 pre-configured decoration types: “Small”, “Medium” and “Large”. You can easily add your own types by modifying the script properties.
If you want to place a decoration in a specific way you can change the position and rotation of the “PositionOffsetLocator” (in the “DecorationSmallLamp” template). You could for example make an UFO decoration that floats above the socket. You can also use scripts inside the decoration to animate it (like the “Simple Animation” package).
The “DecorationSlotScript” has some properties you can configure. Please read the property tooltips, by hovering your mouse cursor over the script properties.
Decorations are automatically persisted in User Save Data. It works similar to the default Tycoon slots.
If you have any questions or feedback, reach out to me (Vilva#5980) in the Crayta Discord