Super Mario Galaxy Object Database

Objects | Configs | Occurrences

Config: ElectricRail

An electric barrier that damages the player and compatible objects when touching the electricity or one of the points. The shape is defined by a path. It cannot be destroyed without special triggers.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0IntegerBothFalse

Stack Height: The number of individual fences that make up the height. Default is 1.

    Obj_arg1FloatBothFalse

    Shadow Length: The shadow drop length. Uses Obj_arg2 if that value is bigger.

      Obj_arg2FloatBothFalse

      Shadow Length: The shadow drop length. Uses Obj_arg1 if this value is smaller.

        Obj_arg3IntegerBothFalse

        Model Type: Specifies what model and color frame to use. Default is 0.

        • 0: Green ElectricRail
        • 1: Red ElectricRail
        • 2: Green ElectricRailMoving
        • 3: Red ElectricRailMoving
        Obj_arg4BooleanBothFalse

        Calculate Gravity?: If set, the shadow's drop direction will match the object's gravity vector, and it will recalculate gravity when necessary.

          Obj_arg5BooleanSMG2False

          Bowser Statue Beam?: If set, it will use a different sound effect intended to be used with KoopaStatueVomit.

            Point_arg0BooleanBothFalse

            Don't Create Point?: If set, no electric point will be created at this path point.

              Switches

              NameGamesRequired?Description
              SW_APPEARSMG2False

              Appears when this switch is activated.

              SW_ABothFalse

              If activated, the fence will disappear. The green connector points still remain, though.

              SW_AWAKEBothFalse

              Enables rendering and resumes updates when this switch is active.

              Setup

              NameGamesRequired?DescriptionValues
              RailBothTrue

              Specifies the shape and points. Each path point becomes a green point.

                DemoCastBothFalse

                Can take part in a cutscene. Its special cutscene nerve action makes it disappear.