# Load User Data Instance

Grammar — Load user data for userType: instance from bank bank section section
FlagsNative | Action

Loads all modified values within the given instance.

# Arguments

  • string<gamelink::User> — User Type
  • string<userinstance> — Instance
  • bank — Bank
  • string — Section

Returns — void

native void UserDataLoadInstance(
	string inType,
	string inInstance,
	bank inBank,
	string inSection,
);

Category: User Data / Save/Load

# Examples

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

            lv_indexObjective = CatalogEntryGet(c_gameCatalogObjective, autoF4A6A1CE_ai);
            if ((libSwaC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                UserDataLoadInstance("MissionObjective", libSwaC_gf_ZS_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
            }

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

                if ((libSwaC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                    UserDataResetInstance("MissionObjective", libSwaC_gf_ZS_ObjectiveUserDataInstance(lv_indexObjective));
                    UserDataLoadInstance("MissionObjective", libSwaC_gf_ZS_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
                }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:601

        lv_indexState = UserDataInstance("WriterStates", lv_index);
        if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == BankValueGetAsInt(libSwaC_gf_StoryBank(), ("WriterStateSnapshot"), (lv_indexState)))) {
            UserDataLoadInstance("WriterStates", lv_indexState, lib281DEC45_gf_ZSS_TempConversationBank(), ("WriterStates"));
        }
        else {

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

            autoC7E73029_ai = autoC7E73029_ai + 1;
            if ((libVoiC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                UserDataLoadInstance("MissionObjective", libVoiC_gf_PS_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
            }

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

                if ((libVoiC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                    UserDataResetInstance("MissionObjective", libVoiC_gf_PS_ObjectiveUserDataInstance(lv_indexObjective));
                    UserDataLoadInstance("MissionObjective", libVoiC_gf_PS_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
                }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:817

        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            lv_newValue = UserDataGetInt("StoryStates", lv_indexState, "Value", 1);
            UserDataLoadInstance("WriterStates", lv_indexState, libVoiC_gf_StoryBank(), ("WriterStateSnapshot"));
            if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == lv_newValue)) {
                UserDataLoadInstance("WriterStates", lv_indexState, libVCST_gf_PS_TempConversationBank(), ("WriterStates"));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:819

            UserDataLoadInstance("WriterStates", lv_indexState, libVoiC_gf_StoryBank(), ("WriterStateSnapshot"));
            if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == lv_newValue)) {
                UserDataLoadInstance("WriterStates", lv_indexState, libVCST_gf_PS_TempConversationBank(), ("WriterStates"));
            }
            else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:892

        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataLoadInstance("StoryStates", lv_indexState, libVoiC_gf_StoryBank(), ("WriterStateSnapshot"));
        }

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

            auto8F9D0B1A_ai = auto8F9D0B1A_ai + 1;
            if ((libComC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                UserDataLoadInstance("MissionObjective", libComC_gf_CC_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
            }

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

                if ((libComC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                    UserDataResetInstance("MissionObjective", libComC_gf_CC_ObjectiveUserDataInstance(lv_indexObjective));
                    UserDataLoadInstance("MissionObjective", libComC_gf_CC_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
                }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:728

        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            lv_newValue = UserDataGetInt("StoryStates", lv_indexState, "Value", 1);
            UserDataLoadInstance("WriterStates", lv_indexState, libComC_gf_CC_StoryBank(), ("WriterStateSnapshot"));
            if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == lv_newValue)) {
                UserDataLoadInstance("WriterStates", lv_indexState, libNCST_gf_NS_TempConversationBank(), ("WriterStates"));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:730

            UserDataLoadInstance("WriterStates", lv_indexState, libComC_gf_CC_StoryBank(), ("WriterStateSnapshot"));
            if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == lv_newValue)) {
                UserDataLoadInstance("WriterStates", lv_indexState, libNCST_gf_NS_TempConversationBank(), ("WriterStates"));
            }
            else {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:803

        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataLoadInstance("StoryStates", lv_indexState, libComC_gf_CC_StoryBank(), ("WriterStateSnapshot"));
        }

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

            lv_indexObjective = CatalogEntryGet(c_gameCatalogObjective, autoF4A6A1CE_ai);
            if ((libA3DDD02B_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                UserDataLoadInstance("MissionObjective", libA3DDD02B_gf_PP_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
            }

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

                if ((libA3DDD02B_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
                    UserDataResetInstance("MissionObjective", libA3DDD02B_gf_PP_ObjectiveUserDataInstance(lv_indexObjective));
                    UserDataLoadInstance("MissionObjective", libA3DDD02B_gf_PP_ObjectiveUserDataInstance(lv_indexObjective), lp_sourceBank, lv__SectionName);
                }