# Can Select Hero Talent Tree

Grammar — Can Select Hero Talent Tree(player, talentTreeIndex)
FlagsNative | Function

# Arguments

  • int — Player
  • int — Talent Tree Index

Returns — bool

native bool TalentTreeCanSelectHeroTalentTree(
	int inPlayer,
	int inTalentTreeIndex,
);

Category: Talent Tree / Basic

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1676

        lv_loopIndex = 1;
        for ( ; lv_loopIndex <= auto4E1F0EC0_ae ; lv_loopIndex += 1 ) {
            if ((TalentTreeCanSelectHeroTalentTree(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents)) == true)) {
                lv_loopTalent = TalentTreeGetHeroTalentLink(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents));
                if ((lv_loopTalent == lp_talent)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1719

        lv_loopIndex = 1;
        for ( ; lv_loopIndex <= autoC9042940_ae ; lv_loopIndex += 1 ) {
            if ((TalentTreeCanSelectHeroTalentTree(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents)) == true)) {
                lv_numPossible += 1;
                lv_PossibleChoices[lv_numPossible] = lv_loopIndex;