# Player License Check

Grammar — Player player has License license
FlagsNative | Function

Returns true if the player has the specified license.

# Arguments

Returns — bool

native bool PlayerHasLicense(int inPlayer, int inLicense);

Category: Player / Player Settings

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    if ((PlayerHasLicense(1, c_playerLicenseLibertyFull) == false) && (libCamp_gf_NumberOfMissions(libCamp_ge_MissionCountOptions_Completed) >= 4)) {
        return true;
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1379

    }

    if ((PlayerHasLicense(1, c_playerLicenseNovaPack2) == true) && (PlayerHasLicense(1, c_playerLicenseNovaPack3) == false)) {
        return "Nova06";
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1379

    }

    if ((PlayerHasLicense(1, c_playerLicenseNovaPack2) == true) && (PlayerHasLicense(1, c_playerLicenseNovaPack3) == false)) {
        return "Nova06";
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1382

        return "Nova06";
    }
    else if ((PlayerHasLicense(1, c_playerLicenseNovaPack3) == true)) {
        return "Nova09";
    }