Saints Row 2 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)
effect_play true
    115
    effect_stop true
      99
      element_get_actual_size true 1 184
      element_set_actual_size true 1 10
      em01_main true 1
        em01_setup true 1
          em01_skip_coop true 1
            em02_main true 1
              em02_setup true 1
                ep01_main true 1
                  ep01_setup true 1
                    ep02_main true 1
                      ep02_setup true 1
                        ep02_skip_coop true 1
                          ep03_main true 1
                            ep03_setup true 1
                              ep03_skip_coop true 1
                                ep04_main true 1
                                  ep04_setup true 1
                                    ep04_skip_coop true 1
                                      error true
                                        4
                                        event_state_tracker_create true 1
                                          event_state_tracker_get_state true 1
                                            event_tracking_interface_enter true
                                              22
                                              event_tracking_interface_exit true
                                                4
                                                event_tracking_interface_tab_change_string true
                                                  6
                                                  explosion_create true
                                                    37