logoHourGlass
Battle.GetPlayer

Battle.GetPlayer

Battle.GetPlayer(BattleIndex, Slot)

函數別名

Battle.GetPlayIndex(BattleIndex, Slot)

函數功能

獲取戰鬥隊列中對象實例的對象index

參數說明

  • BattleIndex數值型 戰鬥index,爲Encount、PVE或PVP函數的返回值。
  • Slot數值型 戰鬥隊列中玩家位置,範圍0-19,其中0-9爲下方實例隊列,10-19爲上方實例隊列。

返回值

返回-1失敗,成功返回對象實例的 對象index