# Player Add Reward

FlagsNative | Action

Adds the selected reward to the player. Note: You cannot add a reward with a license associated.

# Arguments

  • int — Player
  • string — Reward

Returns — void

native void PlayerAddReward(int inPlayer, string inReward);

Category: Player / Player Settings

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7747

                    if ((CatalogEntryScope(c_gameCatalogReward, lv_appReward) == "CRewardVoicePack")) {
                        if (((lv_appReward) == lv_rewardStringIDCombine)) {
                            PlayerAddReward(lp_player, lv_rewardStringIDCombine);
                        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7787


    }
    PlayerAddReward(lp_player, (lv_defaultvoicepack));
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:30123

                    if ((CatalogEntryScope(c_gameCatalogReward, lv_appReward) == "CRewardVoicePack")) {
                        if (((lv_appReward) == lv_rewardStringIDCombine)) {
                            PlayerAddReward(1, lv_rewardStringIDCombine);
                            TriggerDebugOutput(1, StringExternal("Param/Value/lib_COMI_BD9298EE"), true);
                        }