Skip to main content

Scandata

Based on game build 722832 | Last updated: 2026-04-18

Overview

The Scandata prefab defines a collectible inventory item representing scanned information. It is designed to be stacked in inventory slots and interacts with fire and haunting mechanics. The prefab uses helper functions to attach burnable, propagator, and hauntable behaviors automatically.

Usage example

local inst = SpawnPrefab("scandata")
if inst and inst.components.inventoryitem then
inst.components.inventoryitem:GiveToPlayer(player)
end

Dependencies & tags

External dependencies:

  • TUNING -- accessed for STACK_SIZE_SMALLITEM constant

Components used:

  • inspectable -- enables examination text
  • inventoryitem -- enables pickup and storage
  • stackable -- enables stacking logic (maxsize configured)

Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
pickupsoundstring"paper"Sound asset played on pickup.

Main functions

None identified.

Events & listeners

None. This prefab file does not register any direct event listeners via ListenForEvent or fire events via PushEvent. Event behavior is handled internally by helper functions (MakeSmallBurnable, MakeSmallPropagator, MakeHauntableLaunchAndIgnite) which may attach their own listeners to the entity.