Class TotebotPart

Represents a totebot head.

Hierarchy

  • Child

    Hierarchy

    • TotebotPart

Constructors

Properties

fileChild: FileChild
fileShape: FileShape

Accessors

  • get color(): string
  • The color of this shape.

    Returns string

  • set color(value: string): void
  • Parameters

    • value: string

    Returns void

  • get shapeId(): string
  • The shapeId of this shape. Determines the model and behavior in-game.

    Returns string

  • set shapeId(value: string): void
  • Parameters

    • value: string

    Returns void

Methods

  • Connects this child to another child. Both children must be interactable.

    Parameters

    • other: number | Child

      The Child object or the ID of the child to connect to.

    Returns void

  • Disconnects this child from another child.

    Parameters

    • other: number | Child

      The Child object or the ID of the child to disconnect from.

    Returns void

  • Attempts to convert a Child to a TotebotPart. Only returns if the Child's file object is a TotebotPart.

    Returns

    The converted TotebotPart, or undefined if the Child is not a TotebotPart.

    Parameters

    • potential: Child

      The Child to convert.

    Returns undefined | TotebotPart

  • Creates a totebot head.

    Returns

    Parameters

    • position: Vector3

      The position of the totebot head.

    • rotation: Axis

      The rotation of the totebot head.

    • Optional color: string

      The color of the totebot head. Fallbacks to the totebot head's default color.

    • headType: TotebotType = "Synth Voice"

      The type of the totebot head. Defaults to "Synth Voice".

    • pitch: number = 0.48

      The pitch of the totebot head (0-1). Defaults to 0.48.

    • volume: number = 100

      The volume of the totebot head (0-100). Defaults to 100.

    • dance: boolean = false

      Whether the totebot's sounds are in dance mode. Defaults to false.

    Returns TotebotPart

Generated using TypeDoc