Super Mario Galaxy Object Database

Objects | Configs | Occurrences

Config: RailCoin

Creates a group of Coins (RailCoin) or Purple Coins (PurpleRailCoin) that are arranged on a path. Purple Coins can only be used in Purple Comet scenarios or appropriately configured Scenario files.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0IntegerBothFalse

Number of Coins: The number of Coins to be created. Default is 8.

    Obj_arg1IntegerBothFalse

    Time Limit: Specifies how long it takes before the Coins will disappear again. Default is -1, which makes the Coins appear indefinitely.

      Obj_arg3BooleanBothFalse

      Shadow Calculation: If set, the shadow will be calculated at all times and the game takes the shadow range into account when clipping.

        Obj_arg4IntegerBothFalse

        Pose Type: Defines how to position and rotate the Coin. May also connect the Coins to the collision below in SMG2, although this feature is broken.

        • -1: Rotation & shadow direction affected by gravity
        • 0: Rotation ignores gravity & shadow direction affected by gravity
        • 1: Attach to collision below & shadow direction not affected by gravity (SMG2 only)
        Obj_arg7BooleanBothFalse

        Inside Bubble?: If true, the Coin will be placed inside an Air Bubble.

          Switches

          NameGamesRequired?Description
          SW_APPEARBothFalse

          Appears when this switch is activated.

          SW_ASMG2False

          Gets activated after collecting all Coins.

          SW_BBothFalse

          Causes all Coins to appear when activated and causes all Coins to disappear when it gets deactivated again.

          SW_AWAKESMG2False

          Enables rendering and resumes updates when this switch is active.

          Setup

          NameGamesRequired?DescriptionValues
          RailBothTrue

          The path to place the Coins on.

            MercatorTransformBothFalse

            Can use Mercator projection for placement.

              CameraBothFalse

              Used when the Coins appear.

                DemoCastBothFalse

                Can take part in a cutscene. If its special action functor gets triggered, all Coins will appear.