# Mount Of Player

Grammar — Mount of player p
FlagsNative | Function

Returns the mount of the player.

# Arguments

  • int — Player

Returns — string<gamelink::Mount>

native string PlayerMount(int inPlayer);

Category: Player / Player Settings

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:375

    }
    else {
        libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(PlayerHero(gv_pLAYER_TryMe_C)), libCore_gf_DataSkinsGetSkinIndexFromSkinLink(PlayerSkin(gv_pLAYER_TryMe_C)), libCore_gf_DataMountGetMountIndexFromMountLink(PlayerMount(gv_pLAYER_TryMe_C)), lv_xP, gv_pLAYER_TryMe_C, gv_pLAYER_TryMe_C);
    }
    PlayerGroupAdd(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, gv_pLAYER_AI_Ally_C);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:687

        }

        libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(PlayerHero(gv_pLAYER_TryMe_C)), libCore_gf_DataSkinsGetSkinIndexFromSkinLink(PlayerSkin(gv_pLAYER_TryMe_C)), libCore_gf_DataMountGetMountIndexFromMountLink(PlayerMount(gv_pLAYER_TryMe_C)), lv_xP, gv_pLAYER_TryMe_C, gv_pLAYER_TryMe_C);
        libUIUI_gv_uIDebugPanelSpawnAtCamera = false;
    }

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:375

    }
    else {
        libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(PlayerHero(gv_pLAYER_TryMe_C)), libCore_gf_DataSkinsGetSkinIndexFromSkinLink(PlayerSkin(gv_pLAYER_TryMe_C)), libCore_gf_DataMountGetMountIndexFromMountLink(PlayerMount(gv_pLAYER_TryMe_C)), lv_xP, gv_pLAYER_TryMe_C, gv_pLAYER_TryMe_C);
    }
    PlayerGroupAdd(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, gv_pLAYER_AI_Ally_C);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:687

        }

        libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(PlayerHero(gv_pLAYER_TryMe_C)), libCore_gf_DataSkinsGetSkinIndexFromSkinLink(PlayerSkin(gv_pLAYER_TryMe_C)), libCore_gf_DataMountGetMountIndexFromMountLink(PlayerMount(gv_pLAYER_TryMe_C)), lv_xP, gv_pLAYER_TryMe_C, gv_pLAYER_TryMe_C);
        libUIUI_gv_uIDebugPanelSpawnAtCamera = false;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:5585

        lv_choPlayerID = lp_mountSelectedPlayer;
    }
    if ((PlayerMount(lp_mountSelectedPlayer) == libGame_gv_players[lv_mountSelectedHeroIndex].lv_heroData.lv_defaultMount)) {
        lv_selectedMountLink = PlayerMount(lp_skinSelectedPlayer);
        libCore_gf_DataMountsLoadMountDataIntoIndex(lv_selectedMountLink, libCore_gf_DataMountGetMountModelScaleAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountWalkAnimSpeedAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountPoseAnimGroupAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), lv_choPlayerID);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:5586

    }
    if ((PlayerMount(lp_mountSelectedPlayer) == libGame_gv_players[lv_mountSelectedHeroIndex].lv_heroData.lv_defaultMount)) {
        lv_selectedMountLink = PlayerMount(lp_skinSelectedPlayer);
        libCore_gf_DataMountsLoadMountDataIntoIndex(lv_selectedMountLink, libCore_gf_DataMountGetMountModelScaleAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountWalkAnimSpeedAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountPoseAnimGroupAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), lv_choPlayerID);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:5590

    }
    else {
        lv_selectedMountLink = PlayerMount(lp_mountSelectedPlayer);
        libCore_gf_DataMountsLoadMountDataIntoIndex(lv_selectedMountLink, libCore_gf_DataMountGetMountModelScaleAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountWalkAnimSpeedAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), libCore_gf_DataMountGetMountPoseAnimGroupAtConfigIndex(libCore_gf_DataMountGetMountConfigIndexFromMountLink(lv_selectedMountLink)), lv_choPlayerID);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:7628

        lv_defaultFallback = false;
        lv_heroIndex = lv_itPlayer;
        lv_mountLink = PlayerMount(lv_itPlayer);
        if (((libGame_gv_players[lv_itPlayer].lv_heroIndex == libCore_gf_GetIndexFromHero("Gall")) || (libGame_gv_players[lv_itPlayer].lv_heroIndex == libCore_gf_GetIndexFromHero("Cho")))) {
            continue;