Saints Row: The Third Function Reference

Global functions

These functions are assumed to be globally available to all scripts (they aren't defined in the available Lua files, or are defined in files that are known to be always loaded).

This list is assumed incomplete; additional functions could exist in the exe but not be used in the game scripts, and there's no definitive list of Lua files that are always loaded.

Function name Global Defined in Examples from patch (click blue number to expand)
Back_callback true
    1
    base_jumping_enable true
      6
      bink_play true
        23
        Bool true
          1
          boss_battle_kb_enable true
            2
            boss_battle_kb_enable_crowd_props true
              6
              boss_battle_mars_killbane_active true
                2
                boss_battle_matt_begin true
                  3
                  boss_battle_matt_cheats_start true
                    3
                    • m16.lua, line 1573: boss_battle_matt_cheats_start(M16_CHEAT_SLOW, FW1_SLOW_DURATION, FW1_CHEAT_PERIOD, false)
                    • m16.lua, line 1737: boss_battle_matt_cheats_start(M16_CHEAT_LAG, FW2_LAG_DURATION, FW2_CHEAT_PERIOD, false)
                    • m16.lua, line 2029: boss_battle_matt_cheats_start(M16_CHEAT_INVERTED, FW3_INVERT_DURATION, FW3_CHEAT_PERIOD, false)
                    boss_battle_matt_cheats_stop true
                      5
                      boss_battle_matt_get_cheat true
                        3
                        boss_battle_matt_hide_wings true
                          4
                          boss_battle_matt_qte_begin true
                            1
                            boss_battle_matt_set_matt_flying true
                              10
                              boss_battle_matt_set_phase true
                                1
                                boss_battle_matt_set_player_as_avatar true
                                  4
                                  building_purchase_is_crib_being_purchased true
                                    1