logoHourGlass
Char.SetPartyNPC

Char.SetPartyNPC

Char.SetPartyNPC(CharIndex,Mode)

函數功能

設置指定NPC的組隊模式,讓NPC可以組隊。

參數說明

  • CharIndex數值型 目標的 對象index。
  • Mode數值型 組隊模式,0爲禁止組隊,1爲可以組隊。

返回值

返回當前的組隊模式,如果爲-1則設置失敗。