Super Mario Galaxy Object Database

Objects | Classes | Occurrences

Class: PlantGroup

A group of decorative plants that can appear in many different shapes. In SMG2, some objects of this class use ShapeModelNo to derive the proper model to be loaded. The plants attach to the nearest collision below them. If no collision is available, the individual plant may be placed at the origin of the galaxy.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0IntegerBothFalse

Number of Plants: The number of plants to be placed. Default is 7.

    Obj_arg1IntegerBothFalse

    Number of Items: The number of items to be spawned. Default is 0.

      Obj_arg2IntegerBothFalse

      Item Type: The kind of item to be spawned.

      • -1: Coins
      • 1: Star Bits
      Obj_arg3IntegerSMG2False

      Color Frame: The color frame to be used. The available colors depend on the used model. See the individual plant objects for detailed lists.

        Obj_arg4BooleanSMG2False

        Calculate Gravity?: If set, gravity will be taken into account when positioning the plants.

          Obj_arg5BooleanSMG2False

          Prevent Random Rotation?: If set, the individual plants won't be randomly rotated when placed. This setting is always enabled for PlantD02 (sunflower).

            Obj_arg6FloatSMG2False

            Y Offset: The Y offset added to every plant's Y coordinate. Default is 0.

              Switches

              NameGamesRequired?Description
              SW_APPEARBothFalse

              The object will appear when this switch is activated.

              SW_AWAKEBothFalse

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

              Setup

              NameGamesRequired?Description
              RailSMG2False

              Can be used to lay out the plants on a line.

              DemoCastBothFalse

              The object takes part in the cutscene.