Slots (Child Slot Component) - yozozchomutova/AstroModdingKit GitHub Wiki

Slot for putting items on it or acts as body chasis.

Child Slot Component - Can be multiple of them, Has Transform

  • Initially, slot always points up (blue arrow in UE)

Component Variables

  • Child Slot Class - Explanation below.
  • Slottable Items Filtration List - Put Item List blueprint inside it.
  • Slottable Items Filtration List Behaviour -
    • Ignore - ? Nothing happens ?
    • Whitelist - Only items from Filtration List can be put in there.
    • Blacklist - Items from Filtration List CANNOT be put in there.
  • Accept Input Items - ??
  • Slot Visible - If slot will be visible in game.
  • Unclickable - Cannot put items in it and take items from it.
  • Breakable - ??
  • Connection Pull Allowed - ? Only for power cable slot type. If player can pull cable from slot. ?
  • Hide Connector on Pull - ??
  • Generates No Collision - ??
  • Allow Body Slot Attach - ??
  • Weld Items - ??
  • Spawn Starting Physical Item Packaged - ??
  • Aux Slot Type - ??
  • Connector Type - ? Only for power cable slot type. ? ??
  • Configuration - ??
  • Starting Item Type - ??
  • Starting Physical Item Type - ??
  • Starting Item List - ??
  • Starting Actor List - ??
  • Starting Reward Selection - ??

Child Slot Class

Tells slot, how it should behave, influences visual.

Most common ones (for body):

  • Free / Terrain - Platform_BodySlot
  • T1 Placement - Chassis_BodySlot (Slot Visible = false + Have custom slot visual on your model)
  • T2 Placement - Chassis_BodySlot
  • T3 Placement - LargeChassis_BodySlot
  • T4 Placement - XL_Chassis_BodySlot_Extended

(For other items):

  • T1 Placement - ResourceSlot (You can put any T1 item in there)
  • T2 Placement - ??
  • T3 Placement - ??
  • T4 Placement - ??

Turn it into power cable.

Body Slot

Mark slot as body slot.

  1. Make sure you have body slot class.
  2. Functions -> Override -> GetBodySlotLegacy
  3. Remove old one and drag in your new body slot.
  4. Connect body slot to output parameter.
  5. Go to your Physical Item Component and change Tool Move Tier, depending on tier.

image

Indicator (Item Hologram)

Shows item as hologram

image

Nodes:

  • Slot Attempt to Push Indicator Into Specific Subslot - Creates indicator
  • Slot Destroy Indicators - Destroy any indicator

Make SlotIndicatorDefinition:

  • Inputs:
    • Indicator Item Type - Item class to show as hologram.
    • Whitelist Cohabitation Item - ??
    • Tooltip Type:
      • Resource Request - ? When clicked on hologram it tries to put item there from player's backpack. + Information when hovered. ?
      • Crafting Output Preview - ? When clicked on hologram nothing happens. + Information when hovered. ?
      • No Tooltip - ? No tooltip when mouse hovered over, just visual. ?
  • Outputs:
    • Slot Indicator Definition - Put it into Slot Attempt to Push Indicator Into Specific Subslot node.

Example:

image

Power Cable Slot

Unfinished section, actor should have ActorStreamingPowerNode, but I never got it to work

Make cable slot.

image

Change slot component variables:

  • Child Slot Class - PowerSlot_StreamingCable
  • Breakable - True
  • Configuration - Horizontal

Events

Physical Item events:

  • Event Released From Slot - Fires when Physical Item (self) is picked up/removed from slot.
    • From Tool - ??
    • New Owner - ??
  • Event Placed In Slot - Fires when Physical Item (self) is slotted (put down, not being hovered over slot).
    • Slot - Reference to slot it was placed in.
    • From Tool - ??
    • Slotted During Initialization - ? Event was fired, when game launched/save loaded. ?

Child Slot events:

  • ??