Saints Row 2 Function Reference

Global functions

These functions are assumed to be globally available to all scripts since they aren't defined in the patch lua files.

This list is incomplete; additional functions could exist in the exe but not be used in the game lua, and some lua files may always be loaded (system_lib.lua?) making their functions essentially global.

Function name Global Defined in Examples from patch (click blue number to expand)
waiting_for_player_dialog true
    2
    wander_start true
      33
      wander_stop true
        3
        waypoint_add true
          56
          waypoint_remove true
            57
            weapon_store_change_weapon true
              4
              weapon_store_get_is_cache true
                1
                weapon_store_is_melee_store true
                  1
                  weapon_store_purchase_ammo true
                    1
                    weapon_store_purchase_weapon true
                      3
                      weapon_store_set_cache true
                        1