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)
notoriety_force_no_spawn true
    2
    notoriety_reset true
      2
      notoriety_set true
        3
        notoriety_set_can_decay true
          2
          notoriety_set_max true
            2
            notoriety_set_min_and_max true
              30
              npc_fade_out true
                7
                npc_leash_remove true
                  3
                  npc_leash_to_nav true
                    31
                    npc_never_die true
                      1
                      npc_respawn_after_death true
                        7
                        npc_respawn_after_death_time_override true
                          7
                          npc_respawn_dist_override true
                            2
                            npc_respawn_dist_reset true
                              7
                              npc_revive true
                                6
                                npc_suppress_persona true
                                  2
                                  npc_ultra_shield_enable true
                                    1
                                    npc_use_closest_action_node_of_type true
                                      2