sm.interactable

Constants

Name Type Description
actions table The filter type list.
connectionType table The connection type list.
steering table The flag list.
types table The type list.

actions

Value type: table

Actions are used to specify what inputs types an Interactable is able to detect.

Note: Values are not included in the source documentation.

connectionType

Value type: table

Logic

The interactable sends or reads a boolean signal to signal it's current state. (isActive) to signal its output.

In: The interactable reads a boolean (isActive) from its parent as input.

Power

Out: The controller uses a float (getPower) to signal strength output (steering only).

In: The controller reads a float (getPower) from its parent as input for strength.

{
    none        = 0,
    logic       = 1,
    power       = 2,
    bearing     = 4,
    seated      = 8,
    piston      = 16,
    gasoline    = 256,
    electricity = 512,
    water       = 1024,
    ammo        = 2048,
    chemical    = 4096,
}

steering

Value type: table

Flags to be used with the steering component.

Note: Values are not included in the source documentation.

types

Value type: table

{
    "electricEngine",
    "gasEngine",
    "steering",
    "seat",
    "controller",
    "button",
    "lever",
    "sensor",
    "thruster",
    "radio",
    "horn",
    "tone",
    "logic",
    "timer",
    "particlePreview",
    "spring",
    "pointLight",
    "spotLight",
    "chest",
    "scripted",
    "piston",
    "simpleInteractive",
}