# Set Victory Panel Reward Credits

Grammar — Set the number of credits earned in the victory panel to credits
FlagsNative | Action

Using this function instead of “Set Victory Panel Reward Text” will cause the credits to count up from 0 to the desired number.

# Arguments

  • int — Credits

Returns — void

native void VictoryPanelSetRewardCredits(int inCredits);

Category: Story / Victory Panel

# Examples

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

    if ((libCamp_gf_MissionReward(lp_mission) > 0)) {
        VictoryPanelSetRewardTitle(StringExternal("Param/Value/lib_Camp_C2E2CE7E"));
        VictoryPanelSetRewardCredits(libCamp_gf_MissionReward(lp_mission));
    }
    else {