# Set Player Mount

Grammar — Set Player player’s mount to mount|Mount.
FlagsNative | Action

Sets the mount of the specified player.

# Arguments

  • int — Player
  • string [ gamelink::Mount ] — Mount

Returns — void

native void PlayerSetMount(int inPlayer, string inMount);

Category: Player / Player Settings

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L1443
PlayerSetMount(gv_pLAYER_AI_Enemy_C, "HorseBlack")
// L1443
PlayerSetMount(gv_pLAYER_AI_Enemy_C, "HorseBlack")

# mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod

LibLNYF.galaxy

// L327
PlayerSetMount(lp_player, "LunarFestivalRocket")

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L774
PlayerSetMount(lp_player, lv_possibleMounts[RandomInt(1, lv_possibleMountCount)])

# mods/heroesdata.stormmod

GameLib.galaxy

// L5594
PlayerSetMount(lv_choPlayerID, libGame_gv_players[lv_choPlayerID].lv_mountData.lv_mountID)
// L7663
PlayerSetMount(lv_itPlayer, libGame_gv_players[lv_itPlayer].lv_mountData.lv_mountID)
// L7900
PlayerSetMount(lp_choosingPlayer, libGame_gv_players[lp_choosingPlayer].lv_mountData.lv_mountID)