Saints Row 2 Function Reference

Local functions

These functions are defined within the patch lua files. They are assumed to be only available within the file that defines them or by including the file in another script.

Some of these functions may essentially be global since their files are always loaded; which files (and which functions) haven't been determined yet.

Function name Global Defined in Examples from patch (click blue number to expand)
new_line false 1 17
notoriety_reset_vehicle_count false 1
    not_far_enough_away false 1 3
    • bh02.lua, line 336: while not_far_enough_away(Current_bomb_target, FINAL_DETONATION_DISTANCE) do
    • bh02.lua, line 890: while not_far_enough_away(target1, DETONATION_DISTANCE) and (not target2 or not_far_enough_away(target2, DETONATION_DISTANCE)) do
    • bh02.lua, line 890: while not_far_enough_away(target1, DETONATION_DISTANCE) and (not target2 or not_far_enough_away(target2, DETONATION_DISTANCE)) do
    npc_can_throw false 1 4
    nuke_init false 1 1
    nuke_main false 1