# Wait For Bank

Grammar — Wait for bank bank
FlagsNative | Action

Waits for the specified bank file to finish reloading.

# Arguments

  • bank — Bank

Returns — void

native void BankWait(bank b);

Category: Bank / Bank Management

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12798


    BankReload(libCamp_gv_cP_Bank);
    BankWait(libCamp_gv_cP_Bank);
    if ((BankSectionExists(libCamp_gv_cP_Bank, ("CampaignCompleted")) == true)) {
        libCamp_gv_cPX_CampaignCompleted = BankValueGetAsFlag(libCamp_gv_cP_Bank, ("CampaignCompleted"), "1");

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:21649

    }

    BankWait(libSwaC_gv_zS_ArchivesBank);
    libSwaC_gv_zS_ArchivesReloading = false;
    libSwaC_gf_ZS_ArchiveBankLoad();

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:21671

    }

    BankWait(libSwaC_gv_zS_ArchivesBank);
    libSwaC_gv_zS_ArchivesReloading = false;
    libSwaC_gf_ZS_ArchiveBankSave();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10568

    }

    BankWait(libVoiC_gv_pC_ArchivesBank);
    libVoiC_gv_pC_ArchivesReloading = false;
    libVoiC_gf_PC_ArchiveBankLoad();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10590

    }

    BankWait(libVoiC_gv_pC_ArchivesBank);
    libVoiC_gv_pC_ArchivesReloading = false;
    libVoiC_gf_PC_ArchiveBankSave();

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:4651

    }

    BankWait(libComC_gv_cC_ArchivesBank);
    libComC_gv_cC_ArchivesReloading = false;
    libComC_gf_CC_ArchiveBankLoad();

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:4672

    }

    BankWait(libComC_gv_cC_ArchivesBank);
    libComC_gv_cC_ArchivesReloading = false;
    libComC_gf_CC_ArchiveBankSave();

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8961

    }

    BankWait(libA3DDD02B_gv_pC_ArchivesBank);
    libA3DDD02B_gv_pP_ArchivesReloading = false;
    libA3DDD02B_gf_PC_ArchiveBankLoad();

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8986

    }

    BankWait(libA3DDD02B_gv_pC_ArchivesBank);
    libA3DDD02B_gv_pP_ArchivesReloading = false;
    libA3DDD02B_gf_PC_ArchiveBankSave();