Super Mario Galaxy Object Database

Objects | Classes | Occurrences

Class: 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.

            Switches

            NameGamesRequired?Description
            SW_APPEARSMG2False

            The object will appear when this switch is activated.

            SW_ABothFalse

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

            SW_AWAKEBothFalse

            The object will become visible and resume movement when this switch is activated.

            Properties

            NameGamesRequired?Description
            RailBothTrue

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

            DemoCastBothFalse

            The object takes part in the cutscene. Its special cutscene nerve action makes it disappear.