Skip to main content

Researchpointconverter

Based on game build 714014 | Last updated: 2026-03-03

Overview

ResearchPointConverter is a stub component that initializes basic internal state and provides minimal toggle/activation hooks. It is explicitly marked as deprecated in its source file with the comment --DON'T USE THIS! Use prototyper.lua instead. It exists only to maintain API compatibility in legacy contexts and should not be used in new development. The component defines no meaningful game logic or side effects beyond conditionally invoking optional callback functions.

Usage example

-- Not recommended. Use prototyper.lua instead.
local inst = CreateEntity()
inst:AddComponent("researchpointconverter")
inst.components.researchpointconverter:TurnOn()
inst.components.researchpointconverter:Activate()

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
valnumber0Unused internal counter/state value.
activebooleanfalseUnused boolean flag.
levelnumber1Unused level indicator.
onbooleanfalseTracks whether the component is currently "on".

Main functions

TurnOn()

  • Description: Attempts to call the optional self.onturnon callback and sets the on flag to true, but only if the component is currently off. Does nothing if already on or if onturnon is not defined.
  • Parameters: None.
  • Returns: Nothing.

TurnOff()

  • Description: Attempts to call the optional self.onturnoff callback and sets the on flag to false, but only if the component is currently on. Does nothing if already off or if onturnoff is not defined.
  • Parameters: None.
  • Returns: Nothing.

Activate()

  • Description: Invokes the optional self.onactivate callback. Does nothing if onactivate is not defined.
  • Parameters: None.
  • Returns: Nothing.

Events & listeners

None identified