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)
notoriety_force_no_air_spawn true
    7
    notoriety_force_no_spawn true
      189
      notoriety_force_no_spawn_group true
        27
        notoriety_get true
          1
          notoriety_reset true
            31
            notoriety_restricted_zones_enable true
              4
              notoriety_set true
                49
                notoriety_set_can_decay true
                  29
                  notoriety_set_max true
                    52
                    notoriety_set_min true
                      41
                      notoriety_set_min_and_max true
                        44
                        notoriety_set_override_timer true
                          4
                          notoriety_spawn_group_clear_destination true
                            4
                            notoriety_spawn_group_set_delay true
                              8
                              notoriety_spawn_group_set_destination true
                                4
                                • m22.lua, line 3769: notoriety_spawn_group_set_destination("stag", stag_navpoint_name)
                                • m22.lua, line 3770: --notoriety_spawn_group_set_destination("luchadores", luchadore_navpoint_name)
                                • m22.lua, line 3811: --notoriety_spawn_group_set_destination("stag", stag_navpoint_name)
                                • m22.lua, line 3812: notoriety_spawn_group_set_destination("luchadores", luchadore_navpoint_name)
                                notoriety_spawn_only_air true
                                  7
                                  npc_aim_at_point true
                                    1
                                    npc_combat_enable true
                                      92
                                      npc_detection_enable true
                                        1
                                        npc_dont_auto_equip_or_unequip_weapons true
                                          1
                                          npc_dont_drop_weapon_on_death true
                                            5
                                            npc_drop_grenades true
                                              4
                                              npc_go_idle true
                                                4
                                                npc_hearing_enable true
                                                  7
                                                  npc_is_in_party true
                                                    3
                                                    npc_leash_remove true
                                                      73
                                                      npc_leash_to_nav true
                                                        62
                                                        npc_leash_to_object true
                                                          9
                                                          npc_refire_rate_override true
                                                            7
                                                            • m09.lua, line 3228: npc_refire_rate_override(member, 5000)
                                                            • m18.lua, line 3015: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[1], M18_tweak_values.steal_tank_driver_refire_rates[1])
                                                            • m18.lua, line 3016: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[2], M18_tweak_values.steal_tank_gunner_refire_rates[1])
                                                            • m18.lua, line 3019: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[1], M18_tweak_values.steal_tank_driver_refire_rates[2])
                                                            • m18.lua, line 3020: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[2], M18_tweak_values.steal_tank_gunner_refire_rates[2])
                                                            • m18.lua, line 3023: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[1], M18_tweak_values.steal_tank_driver_refire_rates[3])
                                                            • m18.lua, line 3024: npc_refire_rate_override(M18_groups.skydiving_tank.tank_group.chars[2], M18_tweak_values.steal_tank_gunner_refire_rates[3])
                                                            npc_revive true
                                                              12
                                                              npc_suppress_persona true
                                                                35
                                                                npc_unholster_best_weapon true
                                                                  4
                                                                  npc_use_closest_action_node_of_type true
                                                                    10
                                                                    • m05.lua, line 740: -- npc_use_closest_action_node_of_type(npc, M05_groups.party_1.nodes[i], 3)
                                                                    • m05.lua, line 762: -- npc_use_closest_action_node_of_type(npc, M05_groups.party_2.nodes[i], 3)
                                                                    • m05.lua, line 1856: npc_use_closest_action_node_of_type(npc, M05_groups.party_1.nodes[i], 3)
                                                                    • m05.lua, line 1861: npc_use_closest_action_node_of_type(npc, M05_groups.party_2.nodes[i], 3)
                                                                    • m05.lua, line 1866: npc_use_closest_action_node_of_type(npc, M05_groups.guards.nodes[i], 3)
                                                                    • m05.lua, line 1870: npc_use_closest_action_node_of_type(M05_groups.targets.npcs[ 1 ], M05_groups.targets.nodes[ 1 ], 3)
                                                                    • m07.lua, line 2924: npc_use_closest_action_node_of_type(npc, room.node_type[k])
                                                                    • m07.lua, line 3049: npc_use_closest_action_node_of_type(npc, M07_group.bdsm_ambient.nodes[i], 3)
                                                                    • m10.lua, line 1457: npc_use_closest_action_node_of_type(stripper, M10_groups.strippers.anims[i])
                                                                    • sh02.lua, line 1767: npc_use_closest_action_node_of_type(name, "ColdHo", 1.0)
                                                                    npc_weapon_pickup_override true
                                                                      1
                                                                      npc_weapon_spread true
                                                                        3
                                                                        • m10.lua, line 1898: npc_weapon_spread(char, M10_tweak_parameters.rooftop_soldier_spread_mult)
                                                                        • m18.lua, line 2961: npc_weapon_spread(char, M18_tweak_values.steal_tank_ai_spread_mult)
                                                                        • m22.lua, line 2802: npc_weapon_spread(M22_characters.Kia, KIA_WEAPON_SPREAD_MULTIPLIER)