logoHourGlass
Battle.JoinBattle

Battle.JoinBattle

Battle.JoinBattle(CharIndex1, CharIndex2)

函數功能

讓指定玩家對象加入另一個玩家對象的戰鬥中,也就是讓CharIndex2加入CharIndex1的戰鬥(類似石器時代求助幫助)。

參數說明

  • CharIndex1數值型 目標的對象index,在戰鬥中的玩家。
  • CharIndex2數值型 目標的 對象index,不在戰鬥中的玩家。

返回值

0爲成功,其他失敗。