獲取裝備

物品
伺服器端
可在 Mobile 端和 PC 端使用

取得背包裝備欄中的裝備

聲明

func GetEquipments(target entity<Player>, slot EquipmentSlotType, out var equipments entity<Entity>, out var attachments List<entity<Attachment>>)
go

參數

輸入

名稱 類型 描述
目標 Player 目標玩家
槽位 EquipmentSlot 裝備欄槽位

輸出

名稱 類型 描述
武器或裝備 Entity 指定槽位的裝備,沒有裝備時為空
配件列表 ListT_Attachment 該裝備的所有配件