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)
level_lights_toggle_all true 1
    level_light_enable_all_do true
      1
      light_group_attach_to_camera true
        1
        light_group_detach_from_camera true
          1
          light_group_set_intensity true
            12
            light_group_use_intensity true
              5
              limit true 1 11
              load_callback true
                1
                los_check true 1
                  los_check_do true
                    1
                    lua_debug_table true 1
                      lua_play_anim true 1 297
                      lua_play_tween true 1