Script API - v1.19.80
    Preparing search index...

    Contains a set of additional variable values for further defining how rendering and animations function.

    Index

    Constructors

    Methods

    • Beta

      Parameters

      • variableName: string
      • color: Color

      Returns MolangVariableMap

      Adds the following variables to Molang:

      • <variable_name>.r - Red color value [0-1]
      • <variable_name>.g - Green color value [0-1]
      • <variable_name>.b - Blue color value [0-1]

      This function can't be called in read-only mode.

    • Beta

      Parameters

      • variableName: string
      • color: Color

      Returns MolangVariableMap

      Adds the following variables to Molang:

      • <variable_name>.r - Red color value [0-1]
      • <variable_name>.g - Green color value [0-1]
      • <variable_name>.b - Blue color value [0-1]
      • <variable_name>.a - Alpha (transparency) color value [0-1]

      This function can't be called in read-only mode.

    • Beta

      Parameters

      • variableName: string
      • speed: number
      • direction: Vector

      Returns MolangVariableMap

      Adds the following variables to Molang:

      • <variable_name>.speed - Speed number provided
      • <variable_name>.direction_x - X value from the Vector3 provided
      • <variable_name>.direction_y - Y value from the Vector3 provided
      • <variable_name>.direction_z - Z value from the Vector3 provided

      This function can't be called in read-only mode.