Super Mario Galaxy Object Database

Objects | Classes | Occurrences

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

          The object will appear 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

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

          Setup

          NameGamesRequired?Description
          RailBothTrue

          The path to place the Coins on.

          MercatorTransformBothFalse

          The object can use mercator projection for placement.

          CameraBothFalse

          Used when the Coins appear.

          DemoCastBothFalse

          The object takes part in the cutscene. If its special action functor gets triggered, all Coins will appear.