当获得物品时

物品
服务端
Both Mobile and PC
可触发:
玩家实体组件

在获得物品时触发

声明

event OnAccessItem(itemID ItemIDType, item entity<Entity>)
go

参数

名称 类型 描述
道具类型 ItemGoodsIDType 物品类型
实体 Entity 物品实体,可能为空