# Wait For Bank
Grammar — Wait for bank bank
Flags —Native
|Action
Waits for the specified bank file to finish reloading.
# Arguments
bank
— Bank
Returns — void
native void BankWait(bank b);
# Related
Category: Bank / Bank Management
- Open Bank —
bank
— BankLoad - Last Opened Bank —
bank
— BankLastCreated - Reload Bank —
void
— BankReload - Save Bank —
void
— BankSave - Preload Bank — macro
- Wait For Bank —
void
— BankWait
# Examples
campaigns/libertystory.sc2campaign — base.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.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:21649
}
BankWait(libSwaC_gv_zS_ArchivesBank);
libSwaC_gv_zS_ArchivesReloading = false;
libSwaC_gf_ZS_ArchiveBankLoad();
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:21671
}
BankWait(libSwaC_gv_zS_ArchivesBank);
libSwaC_gv_zS_ArchivesReloading = false;
libSwaC_gf_ZS_ArchiveBankSave();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10568
}
BankWait(libVoiC_gv_pC_ArchivesBank);
libVoiC_gv_pC_ArchivesReloading = false;
libVoiC_gf_PC_ArchiveBankLoad();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10590
}
BankWait(libVoiC_gv_pC_ArchivesBank);
libVoiC_gv_pC_ArchivesReloading = false;
libVoiC_gf_PC_ArchiveBankSave();
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:4651
}
BankWait(libComC_gv_cC_ArchivesBank);
libComC_gv_cC_ArchivesReloading = false;
libComC_gf_CC_ArchiveBankLoad();
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:4672
}
BankWait(libComC_gv_cC_ArchivesBank);
libComC_gv_cC_ArchivesReloading = false;
libComC_gf_CC_ArchiveBankSave();
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:8961
}
BankWait(libA3DDD02B_gv_pC_ArchivesBank);
libA3DDD02B_gv_pP_ArchivesReloading = false;
libA3DDD02B_gf_PC_ArchiveBankLoad();
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:8986
}
BankWait(libA3DDD02B_gv_pC_ArchivesBank);
libA3DDD02B_gv_pP_ArchivesReloading = false;
libA3DDD02B_gf_PC_ArchiveBankSave();