Any suggestion about homies and npc spawning by script?

I tried to figure out what happens in few mission scripts and have found this
1) Character is setting up in table. It looks like

Code:
shaundi3_normal = {
            name = "shaundi3_normal_group",
            shaundi3 = "start_shaundi3_normal",
        }
2) Then some empty group value
Code:
    MOL_SH01_homie = {
        shaundi3 = "",
        shaundi2 = "",
    }
3) First group will be created after starting first checkpoint
4) Some character settings will be set by some function
Code:
    if shaundi3_group.shaundi3 ~= nil and shaundi3_group.shaundi3 ~= "" then
        MOL_SH01_homie.shaundi3 = shaundi3_group.shaundi3
        party_add( MOL_SH01_homie.shaundi3)
        character_set_persona(shaundi3_group.shaundi3,"Kinzie")
        on_death("mol_sh01_failure_shaundi3_died_cb", MOL_SH01_homie.shaundi3)
    end
Aaaand. That all. Changing names in first group gives nothing, only break character spawn. Function character_set_persona() only sets icon for the homie. Does character spawn hardcoded in zone files? Does spawn by phone is also hardcoded because I didn't find any clue where is the code what causing it.
 
Back
Top