Super Mario Galaxy Object Database

Objects | Classes | Occurrences

Class: SwitchArea

An area that manipulates a switch once the player enters it. The logic and several additional conditions can be specified.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0BooleanBothFalse

Deactivate Outside Area?: If enabled, SW_A will be disabled again after leaving the area.

    Obj_arg1BooleanBothFalse

    Negate Output?: If set, SW_A will be deactivated instead.

      Obj_arg2BooleanBothFalse

      Ground Use Only?: If set, the player must be on the ground to activate SW_A.

        Obj_arg4IntegerSMG2False

        Riddle SFX Type: Specifies what sound effect to play after updating SW_A's state. This only occurs once per area.

        • -1: No special sound effect
        • 0: SE_SY_READ_RIDDLE_S
        • 1: SE_SY_READ_RIDDLE_SS
        Obj_arg5IntegerSMG2False

        Required Rush Condition: Specifies what special rush condition is needed to activate the switch.

        • -1: Nothing
        • 0: Player is using Spin Drill

        Switches

        NameGamesRequired?Description
        SW_APPEARBothFalse

        The object will appear when this switch is activated.

        SW_ABothTrue

        The event to trigger when Mario enters the area.

        SW_BBothFalse

        If used, this switch needs to be activated in order to make this area manipulate SW_A.

        SW_AWAKEBothFalse

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

        Properties

        NameGamesRequired?Description
        BaseMtxFollowerBothFalse

        Objects of this class can follow another BaseMtxFollowTarget object.